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

ble-bcast-mesh flag persistent and Tx_event

Hi,

Is there a documentation on the usage of the flag persistent/Tx_event? How to use them? Thanks, Claude

  • Hi again Claude, this one slipeed through the cracks, sorry.

    Apart from the inline-API doc, the "usage" doc on GitHub says the following about the functionality:

    Set cache persistence

    uint32_t rbc_mesh_persistence_set(rbc_mesh_value_handle_t handle, bool persistent);

    Set or clear a flag marking the given handle as persistent in the local caches. A non-persistent value may be forgotten by the device, leading to "cache miss" if trying to get the current value of the handle, and potentially strange behavior if the device attempts to write to the handle value. It is recommended that all values that the device intends to write to later are marked as persistent, as writing to non-persistent values increases the risk of dropping packets in the mesh.

    Set TX event

    uint32_t rbc_mesh_tx_event_set(rbc_mesh_value_handle_t handle, bool do_tx_event);

    Set or clear a flag marking the given handle for reporting TX-events. TX-events are indicators that the value has been transmitted to the mesh, and can be used as device-local flow control.

Related