Mistake on this page? Email us
pt_device_object.h File Reference

**Deprecated** A utility header to contain the LwM2M device object ID:3 creation for mediated endpoints. More...

#include <stdbool.h>
#include "pt-client/pt_api.h"

Go to the source code of this file.

Data Structures

struct  ptdo_device_object_data
 The device object data ID:3. More...
 

Macros

#define PT_DEVICE_OBJECT_H_
 
#define DEPRECATED(func)   func
 
#define PT_DEVICE_OBJECT_ID   3
 
#define PT_MANUFACTURER_RESOURCE_ID   0
 
#define PT_MODEL_NUMBER_RESOURCE_ID   1
 
#define PT_SERIAL_NUMBER_RESOURCE_ID   2
 
#define PT_FIRMWARE_VERSION_RESOURCE_ID   3
 
#define PT_REBOOT_RESOURCE_ID   4
 
#define PT_FACTORY_RESET_RESOURCE_ID   5
 
#define PT_ERROR_CODE_RESOURCE_ID   11
 
#define PT_RESET_ERROR_CODE_RESOURCE_ID   12
 
#define PT_DEVICE_TYPE_RESOURCE_ID   17
 
#define PT_HARDWARE_VERSION_RESOURCE_ID   18
 
#define PT_SOFTWARE_VERSION_RESOURCE_ID   19
 

Typedefs

typedef struct ptdo_device_object_data ptdo_device_object_data_t
 The device object data ID:3. More...
 

Functions

 DEPRECATED (pt_status_t ptdo_initialize_device_object(pt_device_t *device, ptdo_device_object_data_t *device_object_data))
 Create the device object ID:3. More...
 

Detailed Description

**Deprecated** A utility header to contain the LwM2M device object ID:3 creation for mediated endpoints.

Deprecated:
The protocol translator API v1 is deprecated. The API will exist until end of 2019.

See the LwM2M definition for device resource: http://www.openmobilealliance.org/tech/profiles/LWM2M_Device-v1_0_1.xml