Handle Matter network status from ChipEventHandler()

Hi there

I've been using Nordic nRF Connect SDK v2.4.1 for my Matter application development. I've been working on features to report Matter network status correctly and I have few questions wanted to get some clarification.

The ChipEventHandler() provides status change of BLE and thread, but from the enum provided in code for ChipEventHandler() and observation from the debug log, network status could not be concluded solely based on one status change, it has to be determined with a sequential updates from ChipEventHandler(). For example, after a device being committed to a network, ChipEventHandler() returns kThreadStateChange then kThreadConnectivityChange. However after a device being removed from the network, the ChipEventHandler only reports kThreadStateChange  without any update about kThreadConnectivityChange. 

So I'm trying to clarify the expected event return for following cases, might as well as the order of the possible event, as I was able to observe ChipEventHandler() return event in different order for one same network state.

  1. Start BLE commissioning 
  2. Timeout BLE commissioning
  3. Transition to Thread commissioning
  4. Timeout Thread commissioning
  5. Complete Commission to Matter network
  6. Matter Boarder Router become offline and no Matter communication as ICD
  7. Matter Boarder router get back online

Thanks for looking into this.

Regards,

Yuelin 

Related