vpetrigo/zigbee-eznet

Commissioning state machine

Closed this issue · 2 comments

Implemented states for commissioning state machine:

  • EZ_STOP
  • EZ_START
  • EZ_WAIT_IDENT_RESP
  • EZ_DISCOVER
  • EZ_MATCH
  • EZ_BIND
  • EZ_UNKNOWN

During the EZ_START state we must perform such steps:

  1. Check for whether a device already joined the network or not
  2. Branching:
  • "YES" If yes - send broadcast Identify Query command
  • "NO" If no - try to form/join a network, in case of success go through the "YES" branch

Checking and sending broadcasts are implemented.

During the EZ_WAIT_IDENT_RESP state we must wait for incoming Identify Query Response.
Now only the TIMEOUT event is handled