Green led stays on after wifi/mqtt connect
Opened this issue · 0 comments
jowi24 commented
I'm using a Sonoff S20 with your code.
Expected (homie) behaviour:
- Green led is permanent on during configuration mode
- Green led flashes after successfully connecting to the wlan
- Green led is off after sucessfully connecting to the mqtt broker
Observed behaviour differes in the last step:
- Green led is permanently on after sucessfully connecting to the mqtt broker
I found this code in setupHandler()
:
#ifdef SONOFFS20
digitalWrite(PIN_LED, LOW);
ledNode.setProperty("state").send("off");
#endif
Why is PIN_LED switched on here?