About Serial API 1.5
-
simple incomming message like in this example
"0;0;3;0;9;read: 3-3-0 s=0,c=1,t=24,pt=0,l=11,sg=0:27"
What are the meanings of each " s=0,c=1,t=24,pt=0,l=11,sg=0" characters in the information ?
I look in the Serial API from http://www.mysensors.org/download/serial_api_15
link but i cant find the "s,c,,t,pt,l,sg" charaters represent for?
-
Hi!
From the source code in the dev branch: link
s = sensor id
c = message type 0-4: presentation, set, req, internal or stream
t = value type: S_VALUE during presentation or V_VALUE during set/req
pt = payload type: string, byte int, etc see link
l = message length
sg = signed or unsigned message: 0 or 1 for false or true0;0;3;0;9 means node 0 , sensor 0, internal message (3), not an ack message (0), log message (9). This means that it's the gateway that prints this info as a log after already having received the message from a node.
At the end you have the payload: 27
Similarly for a sent message: link
-
Thanks for your kindly reply
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
JSN SR04T - Temperature Influencing Readings
Troubleshooting • 6 Sept 2019, 07:51 • Timbergetter 6 days ago -
Can not compile MySensors on esp8266
Troubleshooting • 24 Aug 2024, 15:35 • TheoL 29 Aug 2024, 20:47 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Echo request is not set
Troubleshooting • 12 Aug 2024, 15:36 • kamilb85 3 Sept 2024, 08:58