Set Zigbee Network Coordinator Channel at runtime

I want to be able to select the Network Coordinator Zigbee channel based on some GPIOs state (switches).

Is there any api function to set CONFIG_ZIGBEE_CHANNEL at runtime?

I plan to use 3 channels (one corresponding to each wi-fi channel 1,6,11) so I can setup NC to avoid used wi-fi channels (hoping they are not using all 3 wi-fi channels in the building)

For the other network nodes I can use a mask with those 3 channels( CONFIG_ZIGBEE_CHANNEL_MASK), so they will search for the channel of the NC when they join the network (if my understanding is correct)

Is there any other smarter way to avoid Wi-Fi interference in a large building with many Zigbee Routers/Endpoints?

Related