nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bt_mesh_prop_srv_pub()

int bt_mesh_prop_srv_pub ( struct bt_mesh_prop_srv * srv,
struct bt_mesh_msg_ctx * ctx,
const struct bt_mesh_prop_val * val )

#include <include/bluetooth/mesh/gen_prop_srv.h>

Publish a property value.

Parameters
[in]srvServer that owns the property.
[in]ctxMessage context to publish with, or NULL to publish on the configured publish parameters.
[in]valValue of the property.
Return values
0Successfully publish a Generic Level Status message.
-EINVALThe server is a Client Property server, which does not support publishing of property values.
-EMSGSIZEThe given property size is not supported.
-EADDRNOTAVAILA message context was not provided and publishing is not configured.
-EAGAINThe device has not been provisioned.