So I can connect to my IO account, but when I toggle the switch I get "LOW" in both toggle positions?
Could anybody kindly point me in the direction as to where to look?
to Adafruit IO..........
Adafruit IO connected.
received <- 0
LOW
received <- 0
LOW
(This is the same with or without the zero induced by my fluddering:
void handleMessage(AdafruitIO_Data *data) {
Serial.print("received <- ");
if(data->toPinLevel() == HIGH)
Serial.println("HIGH");
else
Serial.println(data->toPinLevel());
Serial.println("LOW");
// write the current state to the led
digitalWrite(LED_PIN, data->toPinLevel());
}
)
The message dash thinks I'm sending the right things though:
2017-09-08 09:08:44 pmDigitalOFF
2017-09-08 09:08:45 pmDigitalON
2017-09-08 09:13:29 pmDigitalOFF
2017-09-08 09:13:33 pmDigitalON
2017-09-08 09:16:33 pmDigitalOFF
2017-09-08 09:16:34 pmDigitalON
The digital input exercise works as intended btw.