This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

adding multiple devices to zigbee network

hi ,

i am developing a zigbee network and i have used the the sample project of zigbee light bulb, switch and coordinator given in nrf5340dk. now i am facing issue with adding more devices into the zigbee network. i want to add more than one light bulb, and to control them with one single light switch, i have read this(https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fusing_zigbee__z_c_l.html&cp=7_3_3_4&anchor=cluster_declaration_custom) but not getting proper idea to implement this task.

Parents
  • Hi,

    In the regular light switch sample, the sample just looks for one bulb, and when it has found that one it stops looking. This is done by checking whether bulb_ctx.short_addr is 0xFFFF, as when it finds the light bulb this address will be updated to be the actual address of the light bulb instead. Thus, it will stop looking after it has found one bulb. If you want it to find all light bulbs you can remove &&
    (bulb_ctx.short_addr == 0xFFFF) from the if statement in find_light_bulb_cb.You will need to find some way to store information about all the light bulbs, and not just one as the sample currently does.

    Best regards,

    Marte

Reply
  • Hi,

    In the regular light switch sample, the sample just looks for one bulb, and when it has found that one it stops looking. This is done by checking whether bulb_ctx.short_addr is 0xFFFF, as when it finds the light bulb this address will be updated to be the actual address of the light bulb instead. Thus, it will stop looking after it has found one bulb. If you want it to find all light bulbs you can remove &&
    (bulb_ctx.short_addr == 0xFFFF) from the if statement in find_light_bulb_cb.You will need to find some way to store information about all the light bulbs, and not just one as the sample currently does.

    Best regards,

    Marte

Children
No Data
Related