i’m trying to use a esp12E to detect and send (via wifi) button change information to cayenne dashboard.
when reading the cayenne examples the code is for other kind off Sensors such as:
//Write data to Cayenne here. This example just sends the current uptime in milliseconds. Cayenne.virtualWrite(0, lastMillis); //Some examples of other functions you can use to send data. //Cayenne.celsiusWrite(1, 22.0); //Cayenne.luxWrite(2, 700); //Cayenne.virtualWrite(3, 50, TYPE_PROXIMITY, UNIT_CENTIMETER);
What i’d like to do is read a pin (door sensor) and send the information to the dashboard.
Any help with the code and functions available? (i’m a newbie).