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

How to send sensor data from nrf52840 to a mobile application over ble mesh

What would be the best example to start with if i have to send the sensor data from nrf52840 to a mobile application using SDK for mesh? I have asked this question before but for SDK 15 for which Nordic UART service example worked well for me. But now in order to send my sensor data using ble mesh connectivity what would be the best place to start. Thanks.  

  • Hi Arshdeep, 

    Please be aware that Bluetooth Mesh until now are very focus on a specific application "building lighting". We don't have an example for data collecting yet. But it should not be a problem to implementing one. 

    Currently in our example (light switch example) we use a client and a server. The client can send a set command to the server to turn the LED on and off. The server when receiving the command will send a status back to the client to tell the actually value of the LED after the command. The client can also send GET command to get the status as well. 

    If you want data, you would need to use that status packet to send the current value of the sensor. You can send more than one byte. And you can send without waiting for the client to request, as well. 

    If you want to send data to the phone, in current implementation, the phone app works as the provisioner, and can also work as client to the generic on off model. You would need to modify the app to support your proprietary model and receive those status from the sensor as described above. The default address of the phone in the network is 0x123. If you have multiple phone in the network, you would need to define different addresses. 

  • Hi Hung Bui,

    I have an nRF52832 GATT based application based on SDK 15.0. I want to convert in into mesh based application. What are steps to be taken, can I re-use my SDK 15 code or everything needs to be re-done?

  • Hi Aftab, 

    When you have new question, please create a new case. 

    I would suggest you to have a look at our nRF SDK for Mesh. We have example of using concurrently nRF SDK v15.3 and mesh. 

Related