corbanmailloux / esp-mqtt-rgb-led

MQTT RGB LEDs Using JSON for Home Assistant
MIT License
270 stars 74 forks source link

Can't get the MQT to work, any ideas ? #21

Closed donnib closed 7 years ago

donnib commented 7 years ago

Hi, I have put this into a nodemcu, it connects to WiFi and it also connects to the MWTT broker (i can see that in the serial terminal) however when i publish the json payload to /home/rgb1/set nothing shows up the serial terminal ? I tried two different MQTT servers, both mosquito and http://www.hivemq.com/try-out/ and none works. It's very strange, in the code i should be able to see "Message received..." but nothing comes in.

Any ideas what i might be doing wrong ?

donnib commented 7 years ago

Never mind, i solved my problem, the problem was that the json i was sending from mqtt box should be in one line, i had just made copy/paste from the page here.