Program that uses the QuickStart Library to interface a SmartMesh IP mote: Connects to the default network and starts publishing a random walk value every 5 seconds.

Dependencies:   mbed millis

Fork of QSL_SimplePublish by Jon-Håkon Bøe Røli

QSL SimplePublish

SmartMesh IP QuickStart Library

Committer:
jhbr
Date:
Thu Sep 01 14:53:55 2016 +0000
Revision:
0:d3f5fdf2e6da
Initial commit of working example

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhbr 0:d3f5fdf2e6da 1 /*
jhbr 0:d3f5fdf2e6da 2 Copyright (c) 2014, Dust Networks. All rights reserved.
jhbr 0:d3f5fdf2e6da 3
jhbr 0:d3f5fdf2e6da 4 Commmon definitions.
jhbr 0:d3f5fdf2e6da 5
jhbr 0:d3f5fdf2e6da 6 \license See attached DN_LICENSE.txt.
jhbr 0:d3f5fdf2e6da 7 */
jhbr 0:d3f5fdf2e6da 8
jhbr 0:d3f5fdf2e6da 9 #ifndef DN_COMMON_H
jhbr 0:d3f5fdf2e6da 10 #define DN_COMMON_H
jhbr 0:d3f5fdf2e6da 11
jhbr 0:d3f5fdf2e6da 12 #include "inttypes.h"
jhbr 0:d3f5fdf2e6da 13 #include <stdbool.h>
jhbr 0:d3f5fdf2e6da 14 #include <string.h>
jhbr 0:d3f5fdf2e6da 15
jhbr 0:d3f5fdf2e6da 16 //=========================== defines =========================================
jhbr 0:d3f5fdf2e6da 17
jhbr 0:d3f5fdf2e6da 18 #ifndef TRUE
jhbr 0:d3f5fdf2e6da 19 #define TRUE 1
jhbr 0:d3f5fdf2e6da 20 #endif
jhbr 0:d3f5fdf2e6da 21
jhbr 0:d3f5fdf2e6da 22 #ifndef FALSE
jhbr 0:d3f5fdf2e6da 23 #define FALSE 0
jhbr 0:d3f5fdf2e6da 24 #endif
jhbr 0:d3f5fdf2e6da 25
jhbr 0:d3f5fdf2e6da 26 // error codes
jhbr 0:d3f5fdf2e6da 27 typedef enum {
jhbr 0:d3f5fdf2e6da 28 DN_ERR_NONE = 0,
jhbr 0:d3f5fdf2e6da 29 DN_ERR_BUSY,
jhbr 0:d3f5fdf2e6da 30 DN_ERR_NOT_CONNECTED, // only used in SmartMesh IP Manager
jhbr 0:d3f5fdf2e6da 31 DN_ERR_ALREADY,
jhbr 0:d3f5fdf2e6da 32 DN_ERR_MALFORMED
jhbr 0:d3f5fdf2e6da 33 } dn_err_t;
jhbr 0:d3f5fdf2e6da 34
jhbr 0:d3f5fdf2e6da 35 //=== API return type
jhbr 0:d3f5fdf2e6da 36
jhbr 0:d3f5fdf2e6da 37 //=========================== typedef =========================================
jhbr 0:d3f5fdf2e6da 38
jhbr 0:d3f5fdf2e6da 39 #endif
jhbr 0:d3f5fdf2e6da 40