robot arm demo team / Mbed 2 deprecated RobotArmDemo Featured

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IothubSerial.h Source File

IothubSerial.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef __IOTHUB_SERIAL_H__
00005 #define __IOTHUB_SERIAL_H__
00006 
00007 #include "mbed.h"
00008 #include "MeasureBuf.h"
00009 #include "Alert.h"
00010 
00011 class IothubSerial
00012 {
00013 public:
00014     IothubSerial();
00015     
00016     int MeasureBufToString(char* buf, int bufsize);
00017 
00018     int AlertBufToString(char* buf, int bufsize);
00019     
00020 private:
00021     int MeasureGroupToString(const char* name, MeasureGroup& mg, char* buf, int bufsize);
00022     
00023     int MeasureSnapshotToString(MeasureSnapshot& msnap, char* buf, int bufsize);
00024     
00025     MeasureSnapshot _pending;
00026     
00027     bool _hasPending;
00028     
00029     Alert _pendAlert;
00030 
00031 };
00032 
00033 #endif