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

A question regard Mesh publish - subscribe address add

Dear all,

I have a question about custom address add.
In light switch example, we can publish message to group address or unicast address.
In my project, we want to send message from gateway (mesh client + WiFi) to other mesh server in network.
Mesh core use dsm_address_publish_add to add new address to publish.
Every time gateway want to publish message to node adress, if address not existed in flash, it will write address data to flash. Flash life time will be reduce soon.

How can i publish message to new unicacst/group address without write to flash?
Thank you.

Parents
  • Hi Huy, 

    If you want to skip the dsm address flash storing, you may need to modify the access layer to not using the dsm to find the publication address. 
    Or you can try using the nrf_mesh_packet_send() directly. There is no requirement by Bluetooth spec that you need to use the model for communication. So it's fine if you access the transport layer directly. Have a look inside packet_tx().

Reply
  • Hi Huy, 

    If you want to skip the dsm address flash storing, you may need to modify the access layer to not using the dsm to find the publication address. 
    Or you can try using the nrf_mesh_packet_send() directly. There is no requirement by Bluetooth spec that you need to use the model for communication. So it's fine if you access the transport layer directly. Have a look inside packet_tx().

Children
Related