38 #ifndef SIMPLE_ON_OFF_SERVER_H__ 39 #define SIMPLE_ON_OFF_SERVER_H__ 53 #define SIMPLE_ON_OFF_SERVER_MODEL_ID (0x0000) uint16_t access_model_handle_t
Access layer handle type.
access_model_handle_t model_handle
Model handle assigned to the server.
bool(* simple_on_off_get_cb_t)(const simple_on_off_server_t *p_self)
Get callback type.
simple_on_off_get_cb_t get_cb
Get callback.
bool(* simple_on_off_set_cb_t)(const simple_on_off_server_t *p_self, bool on)
Set callback type.
uint32_t simple_on_off_server_status_publish(simple_on_off_server_t *p_server, bool value)
Publishes unsolicited status message.
simple_on_off_set_cb_t set_cb
Set callback.
uint32_t simple_on_off_server_init(simple_on_off_server_t *p_server, uint16_t element_index)
Initializes the Simple OnOff server.
Simple OnOff Server state structure.