Applies to:
PcVue 15 onwards |
||
|
||
Summary:
This article will show you how to successfully read MQTT payloads containing “.” in JSON keywords. |
||
|
||
Details:
Let’s imagine a simple situation. PcVue receives values like temperature in an MQTT topic. The device sends a value in the dev.temperature JSON key of an MQTT topic. Here is an example JSON: {
Use a ‘[‘x.y’]’ format to extract data when the keyword contains a character such as the dot: “.”. The use of ‘ or ” is accepted. Following the sample, the following format should be used: JsonGetValue(value,'[‘dev.temperature’]’)
|
||
|
||
|
Created on: 03 May 2022 Last update: 30 May 2024