Some guidance neede...
-
Hi Folks
Let me start by showing some appreciation for this very, very cool library!!!
You folks@MySensors ROCK!Since I've started with arduinos I wanted to go into Home Automation and this library just takes care of most of my needs.
So, like some I've decided to create my own controller...
Long story short, I've built a gateway, plugged it in a windows box, run a small nodeJs app which reads from serial and sends whatever gets there to a REST api on a PaaS development tool.
I was able to use common sense and implemented some of the messages, did find the node 255, S_ARDUINO_RELAY (never saw a S_ARDUINO_NODE), etc....
All good.
But how can I be certain I'm implementing what it is supposed to be implemented? I dont want to rely on my common sense. Some of them I just dont have a clue, eg: FIND_PARENT, FIND_PARENT_RESPONSE and a few more...
Where would I find the protocol documentation it self?
Cheers
-
-
I did go through those...
It doesn't explain the protocol it self, it explains the api's.
So for example what message is a node expecting after sending a message with a ack flag on?
-
For a deeper knowledge, I suggest you open up the MySensors source code. It contains helpful comments.
FIND_PARENT/ FIND_PARENT_RESPONSE is only used between nodes. The controller won't ever see those.
-
Thanks hek, I'll look around the code.
I've been also looking at the nodeJS controler on https://github.com/mysensors/Arduino/blob/development/NodeJsController/NodeJsController.js
Cheers