2019-05-25, 05:45 PM
(2019-05-25, 08:47 AM)KKempeneers Wrote: Hi Leif,
Thank you for your example ... I read your reply yesterday and planned to answer it late last night. I wanted to check if I was right first. I omitted the context and timestamp in my delta message. The remainder is about the same as yours.
However, some thoughts on the "source". What is the meaning of the source entries? I remember I entered my date of birth at a moment ... are those entries picked up by KPlex in any way?
Koen.
This works for me being sent using UDP from an ESP32 to port 55561 which is set in signalk server as id - OPwifi.
Code:
{"updates":[{"values":[{"path":"environment.outside.pressure","value":101595.4}],"Source":"ESP32"}]}
When it gets sent out again from Signalk the source gets changed to OPwifi and a timestamp added.
Code:
"environment":{
"outside":{
"pressure":{
"meta":{
"units":"Pa",
"description":"Current outside air ambient pressure"
},
"value":101594.1,
"$source":"OPwifi",
"timestamp":"2019-05-25T16:20:04.331Z"
}
},