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

mesh app mobile and light switch client/server

hello guys!

i using the 2 examples of light switch client and server and the mesh app for android all work fine, but i have some questions about those examples:

1. if i provision the ble device using the app and remove the app from my phone and install it again why i cant connect again to the 2 ble device that i provisioned before? and if i cant to connected them want i need to do  that i will?

2. the server can send data over the ble to the client? client to client? server to server?if yes so how?

3. if server can send data to a client (or client to client) and i have number of clients in a group how i send to specific client a data?

thanks!!!

  • Hello,

    1: If you uninstall and reinstall the app, or for that matter, go into settings and click "Forget network", you will delete your network keys, and this is why you can't rejoin your network. If you enter your settings inside the nRF Mesh app, you can see the "Network Key" field. This contains your network key. If you want to be able to rejoin the network, you must save this key. The App Keys are also useful to save, because these are used for your network's application channels (the channels that your servers and clients subscribe to and publish on.

    2: Clients publish, servers subscribe. You can have both clients and servers on one mesh device. If you want several devices to be able to both publish and subscribe to the same "model" (a mesh networks equivalent to BLE "Service"), then you must set these to both publish on and subscribe to the same channel.

    3: If you want to send only to a specific device, you can use the devices unicast address, or you can set up different channels between specific devices.

    I suggest you check out the video (youtube link) on this demo. It describes how to provision devices to subscribe to and publish on certain channels.

    Best regards,

    Edvin

Related