Relay With Button Actuator
-
Hi I had and working relay with button actuator. Yesterday I was trying codebender and after that the relay button is not working anymore. I recompile and still the same result. It is sending data to the MQTTgateway but the relay is not switching on. Here is the info from the serial monitor from the relay site when I press the button it just send 1 to the gateway:
Here is the info from the MQTTGateway when I press the button on the relay actuator:
What can the issue be?
Thanks Francois
-
What happens if you upload the sketch using Arduino IDE again?
-
@hek it is doing the same.
-
Hmm.. communication looks good.
What happens if you change this:
if (message.type == V_LIGHT && strlen(msg.getString()) != 0) {
to this:
if (message.type == V_LIGHT) {
-
@hek thanks this is now working. Why will this happen it as it was working for more than week on the sketch in the library.
-
Did it work after the change I proposed? Or by itself?
-
@hek it work with the recommendation you make.
-
It is possible to have more than one button and 1 really? I need 4 buttons and 4 relays. Could someone write what i should to change for that?