Hi, I am working the Zigbee in nrf connect SDK 1.9.1
I am running light_bulb, switch and coordinator examples
I want to change the panid , Short id, via proj.conf
how to set the panid from proj.conf
Hi, I am working the Zigbee in nrf connect SDK 1.9.1
I am running light_bulb, switch and coordinator examples
I want to change the panid , Short id, via proj.conf
how to set the panid from proj.conf
Hi,
I want to change the panid , Short id, via proj.conf
When you say short id, do you mean the short address/network address?
how to set the panid from proj.conf
You can set the PAN ID with the function ZB_PIBCACHE_PAN_ID(); from the NWK functions API.
This function must be called before the stack starts, i.e before zigbee_enabled() is called in main. If you desire to set this in proj.conf you must create a Kconfig file (or use the existing one if there is one) and add the Kconfig optionsource "Kconfig.zephyr"
config ZIGBEE_PAN_ID
hex "Zigbee PAN ID"
Then define CONFIG_ZIGBEE_PAN_ID=0xyour-pan-id (i.e the ID you want in hexavalue) and set the PAN ID as ZB_PIBCACHE_PAN_ID() = CONFIG_ZIGBEE_PAN_ID; in your application
Let me know if this helps,
Kind regards,
Andreas