#include <include/bluetooth/mesh/gen_prop_srv.h>
Publish a property value.
- Parameters
-
[in] | srv | Server that owns the property. |
[in] | ctx | Message context to publish with, or NULL to publish on the configured publish parameters. |
[in] | val | Value of the property. |
- Return values
-
0 | Successfully publish a Generic Level Status message. |
-EINVAL | The server is a Client Property server, which does not support publishing of property values. |
-EMSGSIZE | The given property size is not supported. |
-EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
-EAGAIN | The device has not been provisioned. |