I have the ZigBee Light/Switch sample application working with a third launchpad as a sniffer connected to Wireshark.
It uses the default channel 11 to commission, and does this correctly. (set from f8wconfig.opts) and checked in PuTTy
I would like to programmatically change the channel.
Using the following code I have set the primary channel to 14 which I can validate with a Zstackapi_bdbGetAttributesReq() call
zstack_bdbSetAttrReq.bdbPrimaryChannelSet = 0x4000;
zstack_bdbSetAttrReq.has_bdbPrimaryChannelSet = true;
Zstackapi_bdbSetAttributesReq(zclSampleLight_Entity, &zstack_bdbSetAttrReq);
but it appears that this only changes the data in nonvolatile memory.
How can I make my light (coordinator) programmatically restart on a different channel?