demo project
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Diff: Utils/Alert.h
- Revision:
- 20:891b5270845a
- Parent:
- 19:2f0ec9ac1238
--- a/Utils/Alert.h Sat Jan 23 00:20:27 2016 +0000 +++ b/Utils/Alert.h Tue Jan 26 17:34:51 2016 +0000 @@ -17,17 +17,17 @@ public: Alert() {}; - void SetAlert(time_t created, char* msg, char* atype); + void SetAlert(time_t created, int createdMs, char* msg, char* atype); - void SetPositionAlert(time_t created, int partIx, float diff); + void SetPositionAlert(time_t created, int createdMs, int partIx, float diff); - void SetLoadAlert(time_t created, int partIx, float val); + void SetLoadAlert(time_t created, int createdMs, int partIx, float val); - void SetHardwareAlert(time_t created, int partIx, int code); + void SetHardwareAlert(time_t created, int createdMs, int partIx, int code); - void SetTemperatureAlert(time_t created, int partIx, float temp); + void SetTemperatureAlert(time_t created, int createdMs, int partIx, float temp); - void SetVoltageAlert(time_t created, int partIx, float val); + void SetVoltageAlert(time_t created, int createdMs, int partIx, float val); char AlertType[AlertTypeMaxLen]; @@ -40,6 +40,8 @@ float Value; time_t Created; + + int CreatedMs; }; extern SafeCircBuf<Alert, AlertBufSize, uint32_t> AlertBuf;