cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Bluetooth

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

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

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