38 #ifndef SCENE_CLIENT_H__ 39 #define SCENE_CLIENT_H__ 43 #include "access_reliable.h" 44 #include "scene_common.h" 45 #include "scene_messages.h" 55 #define SCENE_CLIENT_MODEL_ID 0x1205 uint32_t scene_client_get(scene_client_t *p_client)
Sends a Get message to the server.
const scene_client_callbacks_t * p_callbacks
Callback list.
uint16_t access_model_handle_t
Access layer handle type.
Parameters for the Scene Register Status message.
uint32_t scene_client_delete(scene_client_t *p_client, const scene_delete_params_t *p_params)
Sends a Delete message to the server.
scene_state_status_cb_t scene_status_cb
Client model response message callback.
scene_client_msg_data_t msg_pkt
Holds the raw message packet data for transactions.
uint32_t timeout
Reliable message timeout in microseconds.
scene_recall_msg_pkt_t recall
Storage for the Scene Recall message.
scene_client_settings_t settings
Model settings and callbacks for this instance.
Parameters for the Scene Recall message.
Union for holding current message packet.
void(* access_publish_timeout_cb_t)(access_model_handle_t handle, void *p_args)
Access layer publish timeout event callback.
Parameters for the Scene Delete message.
access_publish_timeout_cb_t periodic_publish_cb
callback called at the end of the each period for the publishing
uint32_t scene_client_register_get(scene_client_t *p_client)
Sends a Register Get message to the server.
uint32_t scene_client_recall_unack(scene_client_t *p_client, const scene_recall_params_t *p_params, const model_transition_t *p_transition, uint8_t repeats)
Sends a Recall Unacknowledged message to the server.
nrf_mesh_transmic_size_t transmic_size
TransMIC size used by the outgoing server messages.
access_reliable_cb_t ack_transaction_status_cb
Callback to call after the acknowledged transaction has ended.
access_model_handle_t model_handle
Model handle assigned to this instance.
Parameters for the Scene Store message.
scene_register_state_status_cb_t scene_register_status_cb
Callback for the Scene Register Status message.
uint32_t scene_client_store_unack(scene_client_t *p_client, const scene_store_params_t *p_params, uint8_t repeats)
Sends a Store Unacknowledged message to the server.
bool force_segmented
If server should force outgoing messages as segmented messages.
uint32_t scene_client_store(scene_client_t *p_client, const scene_store_params_t *p_params)
Sends a Store message to the server.
uint32_t scene_client_init(scene_client_t *p_client, uint8_t element_index)
Initializes Scene client.
Packed message structure typedefs are used for packing and unpacking byte stream. ...
Access layer acknowledged publish parameter structure.
Message format for the Scene Delete message.
nrf_mesh_transmic_size_t
Message MIC size selection.
User provided settings and callbacks for the model instance.
void(* scene_state_status_cb_t)(const scene_client_t *p_self, const access_message_rx_meta_t *p_meta, const scene_status_params_t *p_in)
Callback type for scene state related transactions.
Message format for the Scene Recall message.
void(* scene_register_state_status_cb_t)(const scene_client_t *p_self, const access_message_rx_meta_t *p_meta, const scene_register_status_params_t *p_in)
Callback type for register scene state related transactions.
uint32_t scene_client_recall(scene_client_t *p_client, const scene_recall_params_t *p_params, const model_transition_t *p_transition)
Sends a Recall message to the server.
uint32_t scene_client_delete_unack(scene_client_t *p_client, const scene_delete_params_t *p_params, uint8_t repeats)
Sends a Delete Unacknowledged message to the server.
void(* access_reliable_cb_t)(access_model_handle_t model_handle, void *p_args, access_reliable_status_t status)
Access layer acknowledged message callback type.
Parameters for the Scene Status message.
Generic Transition parameters for the model messages.
scene_store_msg_pkt_t store
Storage for the Scene Store message.