Skip to main content

如何确定UUID broadcast report is the required UUID

1 year ago

如何确定UUID broadcast report is the required UUID

Posted byRyon0 points 2 replies
0 upvotes

hello,

i used the application of ble_central.so it can connect the slave device.but before connecting, i want to determine if the UUID in the broadcast is the the required UUID.

if the UUID is not what i want,they can not connect each other,so i need a API function that can compare the UUID in the broadcast with the UUID i set

does the SDK have this API function?

thanks

accepted answer!

1 year ago

PS_Dialog 0 points

Hi Ryon,

I acknowledge that your are using DA1468x family, there's no API that does what you want but you can check the Suota Client project located in the `projects/dk_apps/features/ble_suota_client` folder: this application is a SUOTA 1.2 client implementation and allows to update SUOTA-enabled devices
over the air, using simple serial console interface.

Typing `scan start` in the terminal window, it will start scanning for devices with the SUOTA service. Only devices which include SUOTA Service UUID (0xFEF5) in their advertising data will be listed. You can check the code that is parsing the cli command to see how this is realized.

BR, Paolo

1 year ago

Ryon 0 points

This is very helpful to me.

Thx