81#ifndef OBJECTS_ON_OFF_SWITCH_H
82#define OBJECTS_ON_OFF_SWITCH_H
98#ifndef CONFIG_LWM2M_ON_OFF_SWITCH_INSTANCES_MAX
99#define CONFIG_LWM2M_ON_OFF_SWITCH_INSTANCES_MAX (3U)
105#ifndef CONFIG_LWM2M_ON_OFF_SWITCH_APP_TYPE_MAX_SIZE
106#define CONFIG_LWM2M_ON_OFF_SWITCH_APP_TYPE_MAX_SIZE (16U)
113#define LWM2M_ON_OFF_SWITCH_OBJECT_ID 3342
122#define LWM2M_ON_OFF_SWITCH_DIGITAL_INPUT_STATE_ID 5500
126#define LWM2M_ON_OFF_SWITCH_DIGITAL_INPUT_COUNTER_ID 5501
130#define LWM2M_ON_OFF_SWITCH_ON_TIME_ID 5852
134#define LWM2M_ON_OFF_SWITCH_OFF_TIME_ID 5854
138#define LWM2M_ON_OFF_SWITCH_APP_TYPE_ID 5750
171 int32_t instance_id);
int lwm2m_object_on_off_switch_update_app_type(uint16_t instance_id, const char *app_type, size_t len)
Update the application type of a on/off switch instance.
struct lwm2m_obj_on_off_switch_args lwm2m_obj_on_off_switch_args_t
Arguments for the creation of an on/off switch object instance.
lwm2m_object_t * lwm2m_object_on_off_switch_init(lwm2m_client_data_t *client_data)
Initialize the on/off switch object.
int lwm2m_object_on_off_switch_instance_create(const lwm2m_obj_on_off_switch_args_t *args, int32_t instance_id)
Create a new on/off switch instance and add it to the object list.
int lwm2m_object_on_off_switch_update_status(uint16_t instance_id, bool status)
Update the status of a on/off switch instance.
Arguments for the creation of an on/off switch object instance.
const char * app_type
Array of chars with the app type.
size_t app_type_len
Length of app_type.