ESP-IDF + 0/1 examples
SourceVu will show references to bt_mesh_model_pub from the following samples and libraries:
 
Symbols
loading (1/5)...
Files
loading (2/5)...
SummarySyntaxRelatedExamplesReferencesInstances

Fields

Field
Declared as
Description
struct bt_mesh_model *
The model the context belongs to. Initialized by the stack.
uint16_t
Publish Address.
uint16_t:12
uint16_t key:12,:1
uint16_t key:12, cred:1,:1
uint16_t key:12, cred:1, send_rel:1,:1
Size of TransMIC when sending Segmented Access message.
uint8_t
Publish Time to Live.
uint8_t
Retransmit Count & Interval Steps.
uint8_t
Publish Period.
uint8_t:4
uint8_t period_div:4,:1
uint8_t period_div:4, fast_period:1,:3
Retransmissions left.
uint32_t
Start of the current period.
uint8_t
Directed publish policy.
struct net_buf_simple *
Publication buffer, containing the publication message. This will get correctly created when the publication context has been defined using the BLE_MESH_MODEL_PUB_DEFINE macro. BLE_MESH_MODEL_PUB_DEFINE(name, update, size);.
int (*)(struct bt_mesh_model *mod)
Callback for updating the publication buffer. When set to NULL, the model is assumed not to support periodic publishing. When set to non-NULL the callback will be called periodically and is expected to update bt_mesh_model_pub .msg with a valid publication message. If the callback returns non-zero, the publication is skipped and will resume on the next periodic publishing interval.
Publish Period Timer. Only for stack-internal use.
uint8_t

References

from 0/1 examples