Hi to all, I'm developing a new device that should be a multiprotocol: Zigbee (as coordinator) and BLE peripheral (with his own GATT)
There is an example for this integration?
Many thanks for answer
Abele Barbieri - Como (ITALY)
Hi to all, I'm developing a new device that should be a multiprotocol: Zigbee (as coordinator) and BLE peripheral (with his own GATT)
There is an example for this integration?
Many thanks for answer
Abele Barbieri - Como (ITALY)
Hi Abele.
You can look at any of the multiprotocol Zigbee examples, and define this in the zigbee_init() function.
For example, in examples\multiprotocol\ble_zigbee\ble_zigbee_dynamic_light_switch_nus\main.c and zigbee_init(), you have:
/* Set up Zigbee protocol main parameters. */ zb_set_network_ed_role(IEEE_CHANNEL_MASK); zigbee_erase_persistent_storage(ERASE_PERSISTENT_CONFIG);
zb_set_network_ed_role() defines this device to be an end device.
If you want this device to be a coordinator you have to change zb_set_network_ed_role() to zb_set_network_coordinator_role(), and also add zb_set_max_children(10 for example).
You also have to change the included library. For a coordinator libzboss.a should be included, for a end device libzboss.ed.a should be included.
Best regards,
Andreas
Hi Abele.
You can look at any of the multiprotocol Zigbee examples, and define this in the zigbee_init() function.
For example, in examples\multiprotocol\ble_zigbee\ble_zigbee_dynamic_light_switch_nus\main.c and zigbee_init(), you have:
/* Set up Zigbee protocol main parameters. */ zb_set_network_ed_role(IEEE_CHANNEL_MASK); zigbee_erase_persistent_storage(ERASE_PERSISTENT_CONFIG);
zb_set_network_ed_role() defines this device to be an end device.
If you want this device to be a coordinator you have to change zb_set_network_ed_role() to zb_set_network_coordinator_role(), and also add zb_set_max_children(10 for example).
You also have to change the included library. For a coordinator libzboss.a should be included, for a end device libzboss.ed.a should be included.
Best regards,
Andreas
Ok thanks, I will try the changes you listed.