NordicSemiconductor / Android-nRF-Mesh-Library

The Bluetooth Mesh Provisioner and Configurator library.
https://www.nordicsemi.com/
BSD 3-Clause "New" or "Revised" License
404 stars 174 forks source link

Retrieve UUID of Provisioned Device Without Connectivity #585

Open NomanAziz51 opened 1 month ago

NomanAziz51 commented 1 month ago

Hi,

I have a question regarding the retrieval of the UUID of a provisioned device.

Is it possible to get the UUID of a provisioned device without connectivity, similar to how a provisioned node advertises its MAC address? In the iOS NRF Mesh Library, it retrieves the UUID instead of the MAC address. Can the Android library achieve the same functionality?

Thank you for your assistance!

roshanrajaratnam commented 1 month ago

Hi, yes the API does allow it. Have a look at the following example where you can extract uuid advertised in the beacon data.

https://github.com/NordicSemiconductor/Android-nRF-Mesh-Library/blob/162a29e1b9b9de4c15f39f11c9034d51f486b1bd/app/src/main/java/no/nordicsemi/android/nrfmesh/viewmodels/ScannerRepository.java#L163-L172