Hi all
i am getting these warning every 30second when connected to broker in $SYS/ Topic
2023-08-15 13:59:16 Warning MQTT Client Unexpected token found while looking for the end of the MQTT payload. | Channel = 'MQTT_****LAB01', Topic = '$SYS/brokers/emqx@****lab01/version', Line = 1, Col = 2.
Values are ok
Is there a way to use $SYS Topics and avoid these warnings
"Normal" Topics seems to work without warnings.
//Ronnie
Solved! Go to Solution.
@RH_9464494,
Using wild cards as the first character in a topic does not generate topics that start with ‘$’. This standard MQTT behavior is described in the specification. To get data from ‘$SYS’, set the topic to ‘$SYS/#’. Please take a look at the page in the manual in the following link that covers this: https://www.ptc.com/store/-/media/kepware-store/en/manuals/mqtt-client-manual.pdf#page=12
Thanks,
*Chris
@RH_9464494,
Using wild cards as the first character in a topic does not generate topics that start with ‘$’. This standard MQTT behavior is described in the specification. To get data from ‘$SYS’, set the topic to ‘$SYS/#’. Please take a look at the page in the manual in the following link that covers this: https://www.ptc.com/store/-/media/kepware-store/en/manuals/mqtt-client-manual.pdf#page=12
Thanks,
*Chris
Thank you for answer! It was however already set as suggested ‘$SYS/#’
I might miss something here!
Here is my configuration.
Device/Tag Generation/Topic= $SYS/#
Tag Address = $SYS/brokers/emqx@lab01/version#Payload
Still getting warnings
I have done some other tests to a mosquitto broker and then it works without any warnings.
Thanks, Ronnie