Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "liblwm2m.h"
#include "lwm2mclient.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "openthread/instance.h"
#include "ca821x_api.h"
Classes | |
struct | device_data_t |
Functions | |
void | display_device_object (lwm2m_object_t *object) |
lwm2m_object_t * | get_object_device () |
void | free_object_device (lwm2m_object_t *objectP) |
uint8_t | device_change (lwm2m_data_t *dataArray, lwm2m_object_t *objectP) |
#define PRV_BATTERY_LEVEL 100 |
#define PRV_BINDING_MODE "U" |
#define PRV_ERROR_CODE 0 |
#define PRV_FIRMWARE_VERSION ca821x_get_version() |
#define PRV_MANUFACTURER "Cascoda" |
#define PRV_MEMORY_FREE 15 |
#define PRV_MODEL_NUMBER "Cascoda SDK" |
#define PRV_OFFSET_MAXLEN 7 |
#define PRV_POWER_CURRENT_1 100 |
#define PRV_POWER_SOURCE_1 5 |
#define PRV_POWER_VOLTAGE_1 5000 |
#define PRV_TIME_ZONE "Europe/Berlin" |
#define PRV_TLV_BUFFER_SIZE 128 |
#define RES_M_BINDING_MODES 16 |
#define RES_M_ERROR_CODE 11 |
#define RES_M_REBOOT 4 |
#define RES_O_AVL_POWER_SOURCES 6 |
#define RES_O_BATTERY_LEVEL 9 |
#define RES_O_BATTERY_STATUS 20 |
#define RES_O_CURRENT_TIME 13 |
#define RES_O_DEVICE_TYPE 17 |
#define RES_O_FACTORY_RESET 5 |
#define RES_O_FIRMWARE_VERSION 3 |
#define RES_O_HARDWARE_VERSION 18 |
#define RES_O_MANUFACTURER 0 |
#define RES_O_MEMORY_FREE 10 |
#define RES_O_MEMORY_TOTAL 21 |
#define RES_O_MODEL_NUMBER 1 |
#define RES_O_POWER_SOURCE_CURRENT 8 |
#define RES_O_POWER_SOURCE_VOLTAGE 7 |
#define RES_O_RESET_ERROR_CODE 12 |
#define RES_O_SERIAL_NUMBER 2 |
#define RES_O_SOFTWARE_VERSION 19 |
#define RES_O_TIMEZONE 15 |
#define RES_O_UTC_OFFSET 14 |
uint8_t device_change | ( | lwm2m_data_t * | dataArray, |
lwm2m_object_t * | objectP | ||
) |
void display_device_object | ( | lwm2m_object_t * | object | ) |
void free_object_device | ( | lwm2m_object_t * | objectP | ) |
lwm2m_object_t* get_object_device | ( | void | ) |