This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
hellohome:protocol:node-gateway:home [2015/09/15 16:14] – [Message Type] vdesmedt | hellohome:protocol:node-gateway:home [2015/09/15 16:20] (current) – [Message Type] vdesmedt | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Message based protocol. | * Message based protocol. | ||
* First byte contains the message type | * First byte contains the message type | ||
+ | |||
+ | ===== Initialisation ===== | ||
+ | |||
+ | When a node starts, it sends a NodeStarted message containing a generated signature and a boolean indicating if it requires a new NodeId to be assigned to it. If it does, the gateway assigns a new NodeId and send a NodeConfig command containing the signature and the new NodeId. The signature is used to avoid that different nodes having the same nodeId keep on having the same by processing the same ConfigCommand. | ||
===== Message Type ===== | ===== Message Type ===== |