14#ifndef BT_MESH_TIME_CLI_H__
15#define BT_MESH_TIME_CLI_H__
34#define BT_MESH_TIME_CLI_INIT(_handlers) \
36 .handlers = _handlers, \
37 .pub = {.msg = NET_BUF_SIMPLE(BT_MESH_MODEL_BUF_LEN( \
38 BT_MESH_TIME_OP_TIME_SET, \
39 BT_MESH_TIME_MSG_LEN_TIME_SET)) } \
48#define BT_MESH_MODEL_TIME_CLI(_cli) \
50 BT_MESH_MODEL_ID_TIME_CLI, _bt_mesh_time_cli_op, &(_cli)->pub, \
51 BT_MESH_MODEL_USER_DATA(struct bt_mesh_time_cli, _cli), \
52 &_bt_mesh_time_cli_cb)
69 struct bt_mesh_msg_ctx *ctx,
117 struct bt_mesh_msg_ctx *ctx,
129 struct bt_mesh_model_pub
pub;
156 struct bt_mesh_msg_ctx *ctx,
177 struct bt_mesh_msg_ctx *ctx,
198 struct bt_mesh_msg_ctx *ctx,
222 struct bt_mesh_msg_ctx *ctx,
288 struct bt_mesh_msg_ctx *ctx, uint8_t *rsp);
308 struct bt_mesh_msg_ctx *ctx,
const uint8_t *set,
312extern const struct bt_mesh_model_op _bt_mesh_time_cli_op[];
313extern const struct bt_mesh_model_cb _bt_mesh_time_cli_cb;
int bt_mesh_time_cli_role_get(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, uint8_t *rsp)
Get the Time Role state of a Time Server.
int bt_mesh_time_cli_tai_utc_delta_get(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_time_tai_utc_delta_status *rsp)
Get the UTC Delta status of a Time Server.
int bt_mesh_time_cli_role_set(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const uint8_t *set, uint8_t *rsp)
Set the Time Role state of a Time Server.
int bt_mesh_time_cli_tai_utc_delta_set(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_tai_utc_change *set, struct bt_mesh_time_tai_utc_delta_status *rsp)
Schedule a UTC Delta change for the Timer Server.
int bt_mesh_time_cli_zone_set(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_zone_change *set, struct bt_mesh_time_zone_status *rsp)
Schedule a Time Zone change for the Time Server.
int bt_mesh_time_cli_time_set(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_status *set, struct bt_mesh_time_status *rsp)
Set the Time Status of a Time Server.
int bt_mesh_time_cli_time_get(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_time_status *rsp)
Get the current Time Status of a Time Server.
int bt_mesh_time_cli_zone_get(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_time_zone_status *rsp)
Get the Time Zone status of a Time Server.
bt_mesh_time_role
Definition: time.h:25
void(*const time_zone_status)(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_zone_status *status)
Time Zone status message handler.
Definition: time_cli.h:84
void(*const time_role_status)(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, enum bt_mesh_time_role time_role)
Time Role status message handler.
Definition: time_cli.h:116
void(*const tai_utc_delta_status)(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_tai_utc_delta_status *status)
TAI-UTC Delta status message handler.
Definition: time_cli.h:100
void(*const time_status)(struct bt_mesh_time_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_time_status *status)
Time status message handler.
Definition: time_cli.h:68
Definition: time_cli.h:55
const struct bt_mesh_model * model
Definition: time_cli.h:127
struct bt_mesh_model_pub pub
Definition: time_cli.h:129
const struct bt_mesh_time_cli_handlers * handlers
Definition: time_cli.h:136
struct bt_mesh_msg_ack_ctx ack_ctx
Definition: time_cli.h:131
Definition: time_cli.h:125