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
dn_serial_mt.h
- Committer:
- jhbr
- Date:
- 2016-09-01
- Revision:
- 0:d3f5fdf2e6da
File content as of revision 0:d3f5fdf2e6da:
/* Copyright (c) 2014, Dust Networks. All rights reserved. Serial connector. \license See attached DN_LICENSE.txt. */ #ifndef DN_SERIAL_H #define DN_SERIAL_H #include "dn_common.h" //=========================== defines ========================================= #define DN_SERIAL_API_MASK_RESPONSE 0x01 #define DN_SERIAL_API_MASK_PACKETID 0x02 #define DN_SERIAL_API_MASK_SYNC 0x08 #define DN_SERIAL_PACKETID_NOTSET 0x02 // return code #define DN_SERIAL_RC_OK 0x00 //=========================== typedef ========================================= typedef void (*dn_serial_request_cbt)(uint8_t cmdId, uint8_t flags, uint8_t* payload, uint8_t len); typedef void (*dn_serial_reply_cbt)(uint8_t cmdId, uint8_t rc, uint8_t* payload, uint8_t len); //=========================== variables ======================================= //=========================== prototypes ====================================== void dn_serial_mt_init(dn_serial_request_cbt requestCb); dn_err_t dn_serial_mt_sendRequest( uint8_t cmdId, uint8_t extraFlags, uint8_t* payload, uint8_t length, dn_serial_reply_cbt replyCb ); #endif