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? -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login