![]() |
nRF5 SDK for Thread and Zigbee v4.0.0
|
Important: Before you run this example, make sure to program the SoftDevice.
The dynamic BLE-Thread Template example demonstrates the usage of the dynamic multiprotocol method. This example is a merge of a simplified version of BLE Peripheral Template and Thread CLI Example applications.
For more information about multiprotocol support, see Multiprotocol support with BLE/Bluetooth.
The nRF52 device operates simultaneously on Thread and BLE. It joins the Thread network as a Thread FTD device. It also acts as a BLE Peripheral device sending BLE connectable advertisements.
This example provides OpenThread’s built-in command line interface (CLI), and automatically attaches to the Thread network.
You can find the source code in the following folder: <InstallFolder>\examples\multiprotocol\ble_thread\ble_thread_dyn_template
The example uses LED assignments as described in Thread BSP LED and button reference for the following LEDs:
The following buttons reserved for user application purposes are assigned in this example:
The following testing procedure uses the nRF52840 device.
state
command to check the state of the device in the Thread network: