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