2019-11-23, 03:01 PM
(2019-11-22, 08:30 PM)tkurki Wrote:(2019-11-22, 06:22 PM)craig Wrote: Debug output from local MQTT broker on Openplotter where the payload is [object object]
TL;DR: I just published version 1.3.1 that should fix it.
Code:$ mosquitto_sub -h localhost -t vessels/self/navigation/position
{"longitude":23.5094,"latitude":60.058233333333334}
{"longitude":23.50935,"latitude":60.0582}
Position in Signal K is an object valued property: since it consists of latitude and longitude that should not be handled separately they are handled as a single object with two properties.
The conversion to something useful was missing, [object Object] is what you get if you convert an object to text naively.
With the new version all object valued properties are published in JSON format as text when publishing to the local, embedded server.
Just wanted to confirm that worked an absolute treat. Solved a problem I've been facing for months.
Thank you very much for helping, I just wanted to say thank you very much.