received message child id [SOLVED]
dbemowsk last edited by dbemowsk
I was searching and couldn't find the answer to this. On a received message from a gateway, how do I tell what child ID it is for. I need to know the members of the incoming message. I already use message.type, message.data and message.isAck. Are there others? Where is this documented? Or is it?
dbemowsk last edited by
Perfect. Exactly what I needed. I like the way you set up the receive() function with the switch/case to handle what child it is for.
Yes switch/case works well for that, especially if you have several child sensors to deal with.
Misna last edited by Misna
Finally! Thanks @Boots33 !
I think mysensors is a great platform but simple tutorials are needed.