Esp8266 5v Relay MQTT
Posted: Thu Jan 25, 2018 10:50 pm
Hi,
I have this 5v relay https://www.banggood.com/it/ESP8266-5V- ... 26605.html and I want to use it with MQTT broker, I made a program that connect to my wi-fi network and than to my Mqtt broker (Mosquitto), with mosquitto_pun I do test my program and from Arduino serial Monitor I check that my mqtt message are correctly received, but my relay don't change state. According to this post https://www.hackster.io/makerrelay/esp8 ... ome-e8a437 the relay is not directly connected to Esp, but there is a MCU STC15F104W between them. The relay is actioned by two HEX value A00101A2 open relay; A00100A1 closed relay, can you help me? My program is attached, I try to send command to relay with Serial.println(value, HEX); (see line 69-76) but nothing happen.
Thanks
Massimo
I have this 5v relay https://www.banggood.com/it/ESP8266-5V- ... 26605.html and I want to use it with MQTT broker, I made a program that connect to my wi-fi network and than to my Mqtt broker (Mosquitto), with mosquitto_pun I do test my program and from Arduino serial Monitor I check that my mqtt message are correctly received, but my relay don't change state. According to this post https://www.hackster.io/makerrelay/esp8 ... ome-e8a437 the relay is not directly connected to Esp, but there is a MCU STC15F104W between them. The relay is actioned by two HEX value A00101A2 open relay; A00100A1 closed relay, can you help me? My program is attached, I try to send command to relay with Serial.println(value, HEX); (see line 69-76) but nothing happen.
Thanks
Massimo