Hi
I am working on project and I should publish some data to MQTT. I am using this client.publish("Temperature", tempString); to publish temperature. everything is working well and this is what I get Temperature = 30. I would like to add the unit so it looks like this: Temperature = 30°C.
Waiting for your help
I assume that your problem is in outputting the degree symbol. If so then if you add char(223)
to the output then that value, which is the code for a degree symbol, will be sent with the payload. However, whether it is subsequently displayed properly depends on what device that you are using to view it
If you want further advice please post you full sketch using code tags when you do
1 Like
@115 please continue this topic here rather than by PM
I will not be replying to your PM
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.