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

◆ get

void(*const bt_mesh_battery_srv::get) (struct bt_mesh_battery_srv *srv, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_battery_status *rsp)

Get the Battery state.

Note
This handler is mandatory.
Parameters
[in]srvServer instance to get the state of.
[in]ctxMessage context for the message that triggered the change, or NULL if the change is not coming from a message.
[out]rspResponse structure to be filled. All fields are initialized to special unknown values before calling, so only states that have known values need to be filled.