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.
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.
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 ?