demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Utils/IothubSerial.h@33:8b9dcbf6d8ec, 2016-02-04 (annotated)
- Committer:
- henryrawas
- Date:
- Thu Feb 04 20:10:33 2016 +0000
- Revision:
- 33:8b9dcbf6d8ec
- Parent:
- 19:2f0ec9ac1238
update libs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
henryrawas | 19:2f0ec9ac1238 | 1 | // Copyright (c) Microsoft. All rights reserved. |
henryrawas | 19:2f0ec9ac1238 | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
henryrawas | 18:224289104fc0 | 3 | |
henryrawas | 18:224289104fc0 | 4 | #ifndef __IOTHUB_SERIAL_H__ |
henryrawas | 18:224289104fc0 | 5 | #define __IOTHUB_SERIAL_H__ |
henryrawas | 18:224289104fc0 | 6 | |
henryrawas | 18:224289104fc0 | 7 | #include "mbed.h" |
henryrawas | 18:224289104fc0 | 8 | #include "MeasureBuf.h" |
henryrawas | 18:224289104fc0 | 9 | #include "Alert.h" |
henryrawas | 18:224289104fc0 | 10 | |
henryrawas | 18:224289104fc0 | 11 | class IothubSerial |
henryrawas | 18:224289104fc0 | 12 | { |
henryrawas | 18:224289104fc0 | 13 | public: |
henryrawas | 18:224289104fc0 | 14 | IothubSerial(); |
henryrawas | 18:224289104fc0 | 15 | |
henryrawas | 18:224289104fc0 | 16 | int MeasureBufToString(char* buf, int bufsize); |
henryrawas | 18:224289104fc0 | 17 | |
henryrawas | 18:224289104fc0 | 18 | int AlertBufToString(char* buf, int bufsize); |
henryrawas | 18:224289104fc0 | 19 | |
henryrawas | 18:224289104fc0 | 20 | private: |
henryrawas | 18:224289104fc0 | 21 | int MeasureGroupToString(const char* name, MeasureGroup& mg, char* buf, int bufsize); |
henryrawas | 18:224289104fc0 | 22 | |
henryrawas | 18:224289104fc0 | 23 | int MeasureSnapshotToString(MeasureSnapshot& msnap, char* buf, int bufsize); |
henryrawas | 18:224289104fc0 | 24 | |
henryrawas | 18:224289104fc0 | 25 | MeasureSnapshot _pending; |
henryrawas | 18:224289104fc0 | 26 | |
henryrawas | 18:224289104fc0 | 27 | bool _hasPending; |
henryrawas | 18:224289104fc0 | 28 | |
henryrawas | 18:224289104fc0 | 29 | Alert _pendAlert; |
henryrawas | 18:224289104fc0 | 30 | |
henryrawas | 18:224289104fc0 | 31 | }; |
henryrawas | 18:224289104fc0 | 32 | |
henryrawas | 18:224289104fc0 | 33 | #endif |