Skip to content

Instantly share code, notes, and snippets.

@AdamCummick
AdamCummick / FACTS_ES1_MQTT.ino
Created January 30, 2020 21:06
FACTS P1AM Example Series #1 - MQTT Call and Response
/* FACTS P1AM Example Series #1 - MQTT Call and Response
*
* This example uses an MQTT broker to update the outputs of a P1-08TRS
* to the inputs of a P1-08SIM. You can easily switch these out for any
* discrete input or output module.
*
* I used shiftr.io for this example. This is a free MQTT broker that provides
* nice visualisation and is great for testing. If you want to use a different broker,
* just update the broker string to the proper URL and update any login credentials
*