How can I discover the handlers dynamically from the advertisement of services.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello_client project uses hardcoded handlers, How i can discover the handlers dynamically from the advertisement of services.. I have been looking for a long time for an example. Thanks.

0 Likes
1 Solution
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi moe​,

Unfortunately, we do not have any example to get the handlers dynamically. However, you can print the number of devices advertising and then connect to the required one based on the UUID or device name. You can change the UUID or connect to the required device by adding BTM_BLE_ADVERT_TYPE_NAME_COMPLETE parameter in API wiced_bt_ble_check_advertising_data().

View solution in original post

1 Reply
SheetalJ
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 500 likes received

Hi moe​,

Unfortunately, we do not have any example to get the handlers dynamically. However, you can print the number of devices advertising and then connect to the required one based on the UUID or device name. You can change the UUID or connect to the required device by adding BTM_BLE_ADVERT_TYPE_NAME_COMPLETE parameter in API wiced_bt_ble_check_advertising_data().