mqttClient.publish ESP32
-
Hi!
I'm trying to 'publish' a Label Update command with an integer variable/value.
I'm passing an integer variable from main program (.ino), where I measure temeprature with DS18S20, to programm_sta.cpp, where the GUI-O user code shall be integrated.
Hovewer, I do not know how to use following command:
mqttClient.publish(parameters.publishTopic, "@lb8 TXT:"\MYTEXT"\r\n");
where 'MYTEXT' should be an integer value or it's string representation of my measured temperature value.
Thanks in advance for any help.
BR
Andrej -
@AndrejK Hi!
Please see:
https://forum.gui-o.com/topic/60/assign-a-number-to-ni-through-a-variable/2?_=1736064840303
and
https://forum.gui-o.com/topic/225/how-to-display-a-float-number-via-bluetooth/6?_=1736064823080
Does this help?
Best regards,
Kl3m3n -
Hi!
Thanks, it works!
BR
A