Android Ble Mesh library - Scan unprovisioned devices

Hello,

First, I explain the context of the project:

  • I have several ble mesh devices (generic onoff models) implemented with ESP32 modules that works fine with the nRF ble mesh nordic app.
  • Now, I want to do my own android app.
  • At this moment, I have a new project in Android Studio with the mesh module inside my project: 
  • I have several callbacks prepared in the MainActivity code to test:

However, I don't know how I can scan the unprovisioned devices (I understand that is the first step). Is there any "scan unprovisioned devices" method in the library? Must I use another library to scan the devices? or is there another method of listening the beacons or something similar?

Please, I would appreciate any help to get started. Thank you!

Best regards,

Antonio

Parents Reply
  • HI Aheredia, the mesh library is independent of the BLE implementation. All ble operations including scanning, connecting and read and writing to characteristics are handled by the app. This allows the user to pick a BLE library of their choice.

    So you have found the answer yourself. Yes the app scans for unprovisioned devices by filtering BLE devices using the mesh provisioning service. Similarly provisioned devices are filtered using the mesh proxy service and also uses the network ID to filter the devices belonging to the same network.

Children
Related