Definition in file on_off_switch.h.
#include "liblwm2m.h"
 Include dependency graph for on_off_switch.h:Go to the source code of this file.
Data Structures | |
| struct | lwm2m_obj_on_off_switch_args | 
| Arguments for the creation of an on/off switch object instance.  More... | |
Macros | |
| #define | CONFIG_LWM2M_ON_OFF_SWITCH_INSTANCES_MAX (3U) | 
| Maximum number of instances of the object.   | |
| #define | CONFIG_LWM2M_ON_OFF_SWITCH_APP_TYPE_MAX_SIZE (16U) | 
| Maximum size for the application type string.   | |
| #define | LWM2M_ON_OFF_SWITCH_OBJECT_ID 3342 | 
| On/Off switch object ID.   | |
Typedefs | |
| typedef 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.  | |
Functions | |
| 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.   | |
| 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.   | |
On/Off switch object resource's IDs. | |
| #define | LWM2M_ON_OFF_SWITCH_DIGITAL_INPUT_STATE_ID 5500 | 
| Digital input state esource ID.   | |
| #define | LWM2M_ON_OFF_SWITCH_DIGITAL_INPUT_COUNTER_ID 5501 | 
| Digital Input Counter resource ID.   | |
| #define | LWM2M_ON_OFF_SWITCH_ON_TIME_ID 5852 | 
| On Time resource ID.   | |
| #define | LWM2M_ON_OFF_SWITCH_OFF_TIME_ID 5854 | 
| Off Time resource ID.   | |
| #define | LWM2M_ON_OFF_SWITCH_APP_TYPE_ID 5750 | 
| Application type resource ID.   | |