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

Led blink in mesh network

Hi all,

I can able to blink led in mesh synchronously, but some time it fails in synchronization. when a new node enters into mesh it takes current mesh value, but for me it should not happen. when i send data through this function rbc_mesh_value_set(1, mesh_data, 1) it is calling often 30 seconds, then only new node should receive value( led start blink with mesh synchronously), otherwise it is in rest state.

But problem here when new node enters into mesh, it immediately updated, if not even call this rbc_mesh_value_set() also. I do not know from where it is updating.

my requirement is, it should not update unless until i send message packet.

I tried to stop radio, fifo and i made version to constant at that time this application is not working. how to sop this functionality.

can anyone please help on this.

Regards Manjunath N N

Parents
  • Hi, the mesh will keep broadcasting it current state for each handle forever. So when one of your devices do rbc_mesh_value_set(1, mesh_data, 1), mesh_data will be broadcasted until someone calls value_set again with new data. The node that wakes up, will see these broadcasts, and propagate an event to its application. The first time you see a value, the event will have type RBC_MESH_EVENT_NEW_VAL. When you get an update to a value you already know, the event will be RBC_MESH_EVENT_UPDATE_VAL. You can use this difference to make sure you only accept data that has changed.

    Also make sure you don't call rbc_mesh_value_enable() first, as this will make the first broadcast you see an update. This is because value_enable sets the value in your database, and therefore counts as the "new" value.

Reply Children
No Data
Related