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

ble_mesh flag

Hi,

I want to ask a few question for ble_mesh.

What do these functions do: rbc_mesh_persistence_set(..), rbc_mesh_tx_event_set(..)

Who should do the set operation? Sender or receiver?

I read the document. But will you explain by example?

Thank you

Parents
  • Hi,

    rbc_mesh_persistence_set(..): A non-persistent value may be forgotten (falls out of the “data cache”) if you receive so many new handle-value pairs that you no longer have enough memory for the old handle-value pair. The function rbc_mesh_persistence_set() is then used to ensure that a handle-value pair is not forgotten (falls out of the “data cache”). It is recommended that all values that the device intends to write to later are marked as persistent.

    rbc_mesh_tx_event_set(..): If you set this flag, you will then get a TX event each time the value is transmitted. You can then use this event to count how many times a value is transmitted, and use it as a device-local flow control. In order to maintain high performance in the framework, it is recommended that the amount of values that have this flag set is kept as low as possible. The flag is set to 0 by default.

    Who should do the set operation? Sender or receiver?: The OpenMesh is a rebroadcasting mesh network, you are both sending and receiving. You can use the functions on all the devices in the mesh.

Reply
  • Hi,

    rbc_mesh_persistence_set(..): A non-persistent value may be forgotten (falls out of the “data cache”) if you receive so many new handle-value pairs that you no longer have enough memory for the old handle-value pair. The function rbc_mesh_persistence_set() is then used to ensure that a handle-value pair is not forgotten (falls out of the “data cache”). It is recommended that all values that the device intends to write to later are marked as persistent.

    rbc_mesh_tx_event_set(..): If you set this flag, you will then get a TX event each time the value is transmitted. You can then use this event to count how many times a value is transmitted, and use it as a device-local flow control. In order to maintain high performance in the framework, it is recommended that the amount of values that have this flag set is kept as low as possible. The flag is set to 0 by default.

    Who should do the set operation? Sender or receiver?: The OpenMesh is a rebroadcasting mesh network, you are both sending and receiving. You can use the functions on all the devices in the mesh.

Children
No Data
Related