Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
object_firmware.c File Reference
#include "liblwm2m.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ca821x_log.h"
Include dependency graph for object_firmware.c:

Classes

struct  firmware_data_t
 

Macros

#define RES_M_PACKAGE   0
 
#define RES_M_PACKAGE_URI   1
 
#define RES_M_UPDATE   2
 
#define RES_M_STATE   3
 
#define RES_M_UPDATE_RESULT   5
 
#define RES_O_PKG_NAME   6
 
#define RES_O_PKG_VERSION   7
 
#define RES_O_UPDATE_PROTOCOL   8
 
#define RES_M_UPDATE_METHOD   9
 
#define LWM2M_FIRMWARE_PROTOCOL_NUM   4
 
#define LWM2M_FIRMWARE_PROTOCOL_NULL   ((uint8_t)-1)
 

Functions

void display_firmware_object (lwm2m_object_t *object)
 
lwm2m_object_t * get_object_firmware (void)
 
void free_object_firmware (lwm2m_object_t *objectP)
 

Macro Definition Documentation

◆ LWM2M_FIRMWARE_PROTOCOL_NULL

#define LWM2M_FIRMWARE_PROTOCOL_NULL   ((uint8_t)-1)

◆ LWM2M_FIRMWARE_PROTOCOL_NUM

#define LWM2M_FIRMWARE_PROTOCOL_NUM   4

◆ RES_M_PACKAGE

#define RES_M_PACKAGE   0

◆ RES_M_PACKAGE_URI

#define RES_M_PACKAGE_URI   1

◆ RES_M_STATE

#define RES_M_STATE   3

◆ RES_M_UPDATE

#define RES_M_UPDATE   2

◆ RES_M_UPDATE_METHOD

#define RES_M_UPDATE_METHOD   9

◆ RES_M_UPDATE_RESULT

#define RES_M_UPDATE_RESULT   5

◆ RES_O_PKG_NAME

#define RES_O_PKG_NAME   6

◆ RES_O_PKG_VERSION

#define RES_O_PKG_VERSION   7

◆ RES_O_UPDATE_PROTOCOL

#define RES_O_UPDATE_PROTOCOL   8

Function Documentation

◆ display_firmware_object()

void display_firmware_object ( lwm2m_object_t *  object)

◆ free_object_firmware()

void free_object_firmware ( lwm2m_object_t *  objectP)

◆ get_object_firmware()

lwm2m_object_t* get_object_firmware ( void  )