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

send data from client to specific server via unicast address

Hi Guys,

We are currently working on a mesh sensor network. I have already developed a vendor sensor model (client and server). The client will also work as a gateway and will run on a nRF52840 DK. The Provisioner is on a separate DK just like in the Light Switch Example. The sonsors are a costum hardware with an nRF52840 on it.

The sensor send data on regular bases to the client via the mesh and the client then send it via UART to a computer.

During the provisioning process the nodes are picked randomly to add them to the network. Now the problem is that I have to know which device has received which unicast address.

I now want to send an On/Off message from the client to a unicast address and set an LED to identify which node it is. For that I have to change the publication address of the client locally. So is this possible without the provisioner? I have read that there is the following function available to change the publication address of a node: access_model_publish_address_set()

I found out that this function is in the access_config. h file decelerated but I haven't found a access_config.c file.

So which files do I have to include to use this functions?

Is there another way to change the publication address of a node locally?

Best regards,

Michel

 

Related