如何确定UUID广播回购rt is the required UUID

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
Ryon
Offline
Last seen:9 months 2 weeks ago
Joined:2019-06-26 08:04
如何确定UUID广播回购rt is the required UUID

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

Device:
PS_Dialog
Offline
Last seen:2 months 2 weeks ago
Joined:2018-01-15 10:36
Hi Ryon,

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

Ryon
Offline
Last seen:9 months 2 weeks ago
Joined:2019-06-26 08:04

This is very helpful to me.

Thx