Chat freely about anything...

User avatar
By rudy
#82875
bircastri wrote:It is very strange, because I can see led light turn on only when connection wifi is lost.



Code: Select all//STATO RELE
int OFF = 0;
int ON = 1;


The port pin needs to put out a 0 to turn on the LED. The led is connected to Vcc and the port pin has to go low in order to turn it on. You need to handle on and off for the led different than the relays.


Code: Select allint statusOFF = 1;
int statusON = 0;