How-To: Using JSON & Map with MQTT
-
Since this took me a while to figure out the best method, I thought I would share.
If you are posting JSON data to MQTT and want to use a property of a topic to populate a label:
Posting JSON to MQTT:

Getting a value from a specific property of a topic:

Annoyingly, without the ability to set the retain flag and QoS in MQTT, UIflow's support of it remains just a toy.
In addition, we really need a flag that tells us when the MQTT connection has actually started because there seems to be a significant delay before it works.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login