Loading...
Searching...
No Matches
device.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
20#ifndef OBJECTS_DEVICE_H
21#define OBJECTS_DEVICE_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <stdio.h>
28#include <stdlib.h>
29#include <string.h>
30
31#include "liblwm2m.h"
32#include "lwm2m_client_config.h"
33
65
82
88void lwm2m_free_object_device(lwm2m_object_t *obj);
89
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* OBJECTS_DEVICE_H */
lwm2m_device_resources
Resources of the LwM2M device object instance.
Definition device.h:39
void lwm2m_free_object_device(lwm2m_object_t *obj)
Frees the memory of obj device object.
lwm2m_device_error_codes
Error codes for the Error resource in the device object of LwM2M.
Definition device.h:71
bool lwm2m_device_reboot_requested(void)
Determines if a reboot request has been issued to the device by a server.
@ LWM2M_RES_HW_VERSION
Current hardware version of the device.
Definition device.h:58
@ LWM2M_DEVICE_RESOURCES
Number of resources.
Definition device.h:63
@ LWM2M_RES_REBOOT
Reboot the device.
Definition device.h:44
@ LWM2M_RES_ERROR_CODE
Last error code.
Definition device.h:51
@ LWM2M_RES_BINDINGS
Indicates supported bindings and modes on the client.
Definition device.h:56
@ LWM2M_RES_EXT_DEV_INFO
External device object instance.
Definition device.h:62
@ LWM2M_RES_FW_VER
Current firmware version of the device.
Definition device.h:43
@ LWM2M_RES_SERIAL
Serial number.
Definition device.h:42
@ LWM2M_RES_TIME_ZONE
Indicates the time zone of the device.
Definition device.h:55
@ LWM2M_RES_POWER_SRC
Available power sources.
Definition device.h:46
@ LWM2M_RES_MEM_TOTAL
Total amount of storage space in the device (kB.
Definition device.h:61
@ LWM2M_RES_SW_VERSION
Current software version on the device.
Definition device.h:59
@ LWM2M_RES_TYPE
Type of device.
Definition device.h:57
@ LWM2M_RES_POWER_VOL
Present voltage for each power source.
Definition device.h:47
@ LWM2M_RES_BATTERY_STATUS
Battery status when internal battery is present.
Definition device.h:60
@ LWM2M_RES_TIME_OFFSET
Indicated the UTC offset for the device.
Definition device.h:54
@ LWM2M_RES_FRESET
Perform a factory reset of the device.
Definition device.h:45
@ LWM2M_RES_POWER_AMP
Present current for each power source.
Definition device.h:48
@ LWM2M_RES_MEM_FREE
Estimated current available storage (kB)
Definition device.h:50
@ LWM2M_RES_MANUFACTURER
Human readable manufacturer name.
Definition device.h:40
@ LWM2M_RES_MODEL_NO
Model identifier (manufacturer specified string)
Definition device.h:41
@ LWM2M_RES_TIME
Current UNIX time of the client.
Definition device.h:53
@ LWM2M_RES_ERROR_CODE_RESET
Delete all error code instances.
Definition device.h:52
@ LWM2M_RES_BATTERY_LEVEL
Current battery level as a percentage.
Definition device.h:49
@ LWM2M_DEVICE_ERR_NO_ERR
No error.
Definition device.h:72
@ LWM2M_DEVICE_ERR_SMS_ERR
SMS failure.
Definition device.h:78
@ LWM2M_DEVICE_ERR_LOW_SIGNAL
Low received signal strength.
Definition device.h:76
@ LWM2M_DEVICE_ERR_NO_MEM
Out of memory.
Definition device.h:77
@ LWM2M_DEVICE_ERR_EXT_OFF
External power supply off.
Definition device.h:74
@ LWM2M_DEVICE_ERR_GPS_ERR
GPS module failure.
Definition device.h:75
@ LWM2M_DEVICE_ERR_IP_ERR
IP connectivity failure.
Definition device.h:79
@ LWM2M_DEVICE_ERR_LOW_BATT
Low battery power.
Definition device.h:73
@ LWM2M_DEVICE_ERR_PERIPH_ERR
Peripheral malfunction.
Definition device.h:80
LwM2M client configurations.
stdio wrapper to extend the C libs stdio