![]() |
nRF5 SDK
v14.1.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API |
Important: Before you run this example, make sure to program a SoftDevice.
The ANT Message Types example demonstrates the three different ANT message types: Broadcast, Acknowledged, and Burst. The currently selected message type can be changed by buttons. Use the PC application ANTware to test this example.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ant\ant_message_types\master
This example uses the following assignment of buttons and LEDs:
Message type | Button | LED |
---|---|---|
Broadcast | BSP_BUTTON_0 | BSP_LED_0 |
Acknowledged | BSP_BUTTON_1 | BSP_LED_1 |
Burst | BSP_BUTTON_2 | BSP_LED_2 |
Note: You can use a custom channel or encryption when running any of the ANT examples. When adding a new channel or encryption, remember to update ANT stack configuration.
<InstallFolder>\examples\ant\ant_message_types\master\ant_message_types_master_test.xml
. Alternatively, you can configure the device channel manually: