#include "liblwm2m.h"
Go to the source code of this file.
|
typedef void(* | lwm2m_obj_light_control_cb_t) (lwm2m_object_t *object, uint16_t instance_id, bool status, uint8_t dimmer, const char *color, const char *app_type, void *arg) |
| Signature of the callback called when the light resources are updated.
|
|
typedef struct lwm2m_obj_light_control_args | lwm2m_obj_light_control_args_t |
| Arguments for the creation of a Light Control object instance.
|
|
|
lwm2m_object_t * | lwm2m_object_light_control_init (lwm2m_client_data_t *client_data) |
| Initialize the Light Control object.
|
|
int | lwm2m_object_light_control_instance_create (const lwm2m_obj_light_control_args_t *args, int32_t instance_id) |
| Create a new Light Control instance and add it to the object list.
|
|
int | lwm2m_object_light_control_update_status (uint16_t instance_id, bool status, bool call_cb) |
| Update the status of a light control instance.
|
|
int | lwm2m_object_light_control_update_dimmer (uint16_t instance_id, uint8_t dimmer, bool call_cb) |
| Update the dimmer value of a light control instance.
|
|
int | lwm2m_object_light_control_update_color (uint16_t instance_id, const char *color, size_t len, bool call_cb) |
| Update the color of a light control instance.
|
|
int | lwm2m_object_light_control_update_app_type (uint16_t instance_id, const char *app_type, size_t len, bool call_cb) |
| Update the application type of a light control instance.
|
|