Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
CLI sensor demo capable of acting as either a sensor or a server. More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ca-ot-util/cascoda_dns.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_serial.h"
#include "cascoda-bm/cascoda_types.h"
#include "cascoda-util/cascoda_tasklet.h"
#include "cascoda-util/cascoda_time.h"
#include "ca821x_api.h"
#include "openthread/cli.h"
#include "openthread/coap.h"
#include "openthread/instance.h"
#include "openthread/link.h"
#include "openthread/platform/settings.h"
#include "openthread/tasklet.h"
#include "openthread/thread.h"
#include "platform.h"
#include "cbor.h"
Enumerations | |
enum | sensordemo_state { SENSORDEMO_STOPPED = 0 , SENSORDEMO_SENSOR = 1 , SENSORDEMO_SERVER = 2 } |
Functions | |
ca_error | init_sensordemo (otInstance *aInstance, struct ca821x_dev *pDeviceRef) |
Initialise the sensor demo. More... | |
Variables | |
enum sensordemo_state | sensordemo_state = SENSORDEMO_STOPPED |
CLI sensor demo capable of acting as either a sensor or a server.
Uses cbor data structures inside CoAP messages.
enum sensordemo_state |
ca_error init_sensordemo | ( | otInstance * | aInstance, |
struct ca821x_dev * | pDeviceRef | ||
) |
Initialise the sensor demo.
Should be called once at program startup