Parsing a string?

193 views
Skip to first unread message

Rainer Müller

unread,
May 22, 2021, 3:09:58 PM5/22/21
to Routix

Hi all,
very nice APP! I have the following problem to solve:

My MQTT topic gives me the following string:
{"battery": 91, "contact": true, "last_seen": "2021-05-21T20:00:12+02:00", "linkquality": 76, "voltage": 2985}

I only want to display the if "contact" is true or false. I tried to use JSON but couldn't manage it. I think the whole message is not interpreted as JSON string.

Any ideas how I can manage this?

Thank you for your help in advance
Rainer
Reply all
Reply to author
Forward
0 new messages