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

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

#include <stdbool.h>
#include "pt-client-2/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_API_VERSION   2
 
#define PT_DEVICE_OBJECT_H_
 
#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

pt_status_t ptdo_initialize_device_object (connection_id_t connection_id, const char *device_id, const ptdo_device_object_data_t *device_object_data)
 Create the device object ID:3. More...
 

Detailed Description

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

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