demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Diff: Utils/IothubSerial.h
- Revision:
- 18:224289104fc0
- Child:
- 19:2f0ec9ac1238
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Utils/IothubSerial.h Sat Jan 23 00:08:30 2016 +0000 @@ -0,0 +1,34 @@ +/* +Copyright (c) 2015 Jonathan Pickett & Microsoft. Some appropriate open source license. +*/ + +#ifndef __IOTHUB_SERIAL_H__ +#define __IOTHUB_SERIAL_H__ + +#include "mbed.h" +#include "MeasureBuf.h" +#include "Alert.h" + +class IothubSerial +{ +public: + IothubSerial(); + + int MeasureBufToString(char* buf, int bufsize); + + int AlertBufToString(char* buf, int bufsize); + +private: + int MeasureGroupToString(const char* name, MeasureGroup& mg, char* buf, int bufsize); + + int MeasureSnapshotToString(MeasureSnapshot& msnap, char* buf, int bufsize); + + MeasureSnapshot _pending; + + bool _hasPending; + + Alert _pendAlert; + +}; + +#endif