This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT data manipulation
#17
(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"
              }
           },
Reply


Messages In This Thread
MQTT data manipulation - by KKempeneers - 2019-05-12, 02:38 PM
RE: MQTT data manipulation - by jim321 - 2019-05-12, 07:44 PM
MQTT data manipulation - by PaddyB - 2019-05-13, 08:52 AM
RE: MQTT data manipulation - by KKempeneers - 2019-05-13, 12:05 PM
RE: MQTT data manipulation - by PaddyB - 2019-05-13, 12:15 PM
RE: MQTT data manipulation - by KKempeneers - 2019-05-13, 04:10 PM
RE: MQTT data manipulation - by PaddyB - 2019-05-13, 06:20 PM
RE: MQTT data manipulation - by KKempeneers - 2019-05-13, 07:53 PM
RE: MQTT data manipulation - by tkurki - 2019-05-14, 05:52 AM
RE: MQTT data manipulation - by KKempeneers - 2019-05-14, 10:20 AM
RE: MQTT data manipulation - by PaddyB - 2019-05-14, 11:11 AM
RE: MQTT data manipulation - by PaddyB - 2019-05-14, 09:45 AM
RE: MQTT data manipulation - by PaddyB - 2019-05-13, 08:30 PM
RE: MQTT data manipulation - by KKempeneers - 2019-05-14, 05:42 PM
RE: MQTT data manipulation - by KKempeneers - 2019-05-25, 08:47 AM
RE: MQTT data manipulation - by PaddyB - 2019-05-25, 05:45 PM
RE: MQTT data manipulation - by KKempeneers - 2019-05-26, 05:47 PM
RE: MQTT data manipulation - by PaddyB - 2019-05-26, 07:23 PM
RE: MQTT data manipulation - by PaddyB - 2019-05-27, 11:47 AM
MQTT data manipulation - by tkurki - 2019-05-27, 07:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)