2020-05-06 21:05:51 +00:00
|
|
|
#define WIFI_SSID "myNetwork"
|
|
|
|
#define WIFI_PASSWORD "myPassword"
|
|
|
|
#define WEBHOOK_URL "example.com/aoeuhtns"
|
|
|
|
|
|
|
|
// In this example we have three pins that will
|
|
|
|
// be controlled: pin 5 will be a momentary switch
|
|
|
|
// and pins 8 and 10 will be sustained/latched switches.
|
|
|
|
//
|
|
|
|
// We would expect the webhook to return something like:
|
|
|
|
//
|
2020-05-13 04:46:20 +00:00
|
|
|
// [1 0 1]
|
2020-05-06 21:05:51 +00:00
|
|
|
//
|
|
|
|
// to activate the momentary switch, (pin 5) deactivate the first
|
|
|
|
// latched switch, (pin 8) and activate the second latched switch. (pin 10)
|
|
|
|
const int PIN_MAP[][2] = {
|
2020-05-13 04:46:20 +00:00
|
|
|
{5, 1},
|
2020-05-06 21:05:51 +00:00
|
|
|
{8, 1},
|
|
|
|
{10, 1}
|
|
|
|
};
|