This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is there a way to control the unprovisioned device (a light) with nrf5 sdk for mesh?

Hi support team,

I am a beginner with Nordic nrf5 sdk for mesh.  I begin with the sample light_switch. Currently I want to toggle the status (on/off) of the unprovisioned light by phone APP.

Is there a method to implement it?

I have read the source code and understood the sdk, but not clearly.   I just think that the APP can send the scan request after receiving the advertisement for provisioning service, 

and then at light side it will receive the scan request and BLE_GAP_EVT_SCAN_REQ_REPORT event can be handled.   I plan to toggle the status of the unprovisioned light when received 

the BLE_GAP_EVT_SCAN_REQ_REPORT  event. Is this method practicable? or Is there another way to implement this functionality? 

Any suggestion will be appreciated. 

Parents Reply
  • Please correct me if I'm wrong. So the problem here is that all of the nodes look identical from the outside, there is no serial number or anything. And you want to provision a particular node and you don't know the MAC address or the serial number of the node , correct  ? 

    If it's the case you can use RSSI (Received Signal Strength Indicator) . So if you want to provision a device, you can just pick it up , and bring it close to the phone. On the phone you only show the device with the RSSI higher than a certain level (very close to the phone). This way you can provision the device without the need to connect to every single one.

Children
Related