demo project

Dependencies:   AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL

Committer:
henryrawas
Date:
Sat Jan 23 00:08:30 2016 +0000
Revision:
18:224289104fc0
Child:
19:2f0ec9ac1238
refactor

Who changed what in which revision?

UserRevisionLine numberNew contents of line
henryrawas 18:224289104fc0 1 /*
henryrawas 18:224289104fc0 2 Copyright (c) 2015 Jonathan Pickett & Microsoft. Some appropriate open source license.
henryrawas 18:224289104fc0 3 */
henryrawas 18:224289104fc0 4
henryrawas 18:224289104fc0 5 #ifndef __IOTHUB_SERIAL_H__
henryrawas 18:224289104fc0 6 #define __IOTHUB_SERIAL_H__
henryrawas 18:224289104fc0 7
henryrawas 18:224289104fc0 8 #include "mbed.h"
henryrawas 18:224289104fc0 9 #include "MeasureBuf.h"
henryrawas 18:224289104fc0 10 #include "Alert.h"
henryrawas 18:224289104fc0 11
henryrawas 18:224289104fc0 12 class IothubSerial
henryrawas 18:224289104fc0 13 {
henryrawas 18:224289104fc0 14 public:
henryrawas 18:224289104fc0 15 IothubSerial();
henryrawas 18:224289104fc0 16
henryrawas 18:224289104fc0 17 int MeasureBufToString(char* buf, int bufsize);
henryrawas 18:224289104fc0 18
henryrawas 18:224289104fc0 19 int AlertBufToString(char* buf, int bufsize);
henryrawas 18:224289104fc0 20
henryrawas 18:224289104fc0 21 private:
henryrawas 18:224289104fc0 22 int MeasureGroupToString(const char* name, MeasureGroup& mg, char* buf, int bufsize);
henryrawas 18:224289104fc0 23
henryrawas 18:224289104fc0 24 int MeasureSnapshotToString(MeasureSnapshot& msnap, char* buf, int bufsize);
henryrawas 18:224289104fc0 25
henryrawas 18:224289104fc0 26 MeasureSnapshot _pending;
henryrawas 18:224289104fc0 27
henryrawas 18:224289104fc0 28 bool _hasPending;
henryrawas 18:224289104fc0 29
henryrawas 18:224289104fc0 30 Alert _pendAlert;
henryrawas 18:224289104fc0 31
henryrawas 18:224289104fc0 32 };
henryrawas 18:224289104fc0 33
henryrawas 18:224289104fc0 34 #endif