Hello, i am currently have a school project that involve using mqtt. My project objective is to update led matrix message from html. For this project i use 2 nodemcus (one for broker which has html code and also act as publisher and the other has led matrix as a client). i have tried the code for client and already able to subscribe and display new message that i type from cmd using mqtt eclipse.
below is the attachment for my mqtt broker code.
I saw some examples on the internet that use client.read fuction which when i open the serial monitor i can see the message that i type from html. But, i am unable to get that message out to publish it. Does anyone can help me or give me another solution for getting the message from the html ?
Thx in advance.
MQTT_broker_projek_Edit.ino (5.29 KB)