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.
Fork of QSL_SimplePublish by
QSL SimplePublish
SmartMesh IP QuickStart Library
- GitHub repository
- Current release used: REL-1.0.2.2
- Documentation
- Discussion
Diff: dn_common.h
- Revision:
- 0:d3f5fdf2e6da
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dn_common.h Thu Sep 01 14:53:55 2016 +0000 @@ -0,0 +1,40 @@ +/* +Copyright (c) 2014, Dust Networks. All rights reserved. + +Commmon definitions. + +\license See attached DN_LICENSE.txt. +*/ + +#ifndef DN_COMMON_H +#define DN_COMMON_H + +#include "inttypes.h" +#include <stdbool.h> +#include <string.h> + +//=========================== defines ========================================= + +#ifndef TRUE +#define TRUE 1 +#endif + +#ifndef FALSE +#define FALSE 0 +#endif + +// error codes +typedef enum { + DN_ERR_NONE = 0, + DN_ERR_BUSY, + DN_ERR_NOT_CONNECTED, // only used in SmartMesh IP Manager + DN_ERR_ALREADY, + DN_ERR_MALFORMED +} dn_err_t; + +//=== API return type + +//=========================== typedef ========================================= + +#endif +