Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AX-12A Dynamixel mbed iothub_client EthernetInterface NTPClient ConfigFile SDFileSystem iothub_amqp_transport mbed-rtos proton-c-mbed wolfSSL
Alert.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 __ALERT_H__ 00005 00006 #include "mbed.h" 00007 #include "SafeCircBuf.h" 00008 00009 #define AlertBufSize 8 00010 #define AlertMsgMaxLen 120 00011 #define AlertTypeMaxLen 16 00012 #define MeasureNameMaxLen 16 00013 00014 00015 class Alert 00016 { 00017 public: 00018 Alert() {}; 00019 00020 void SetAlert(time_t created, int createdMs, char* msg, char* atype); 00021 00022 void SetPositionAlert(time_t created, int createdMs, int partIx, float diff); 00023 00024 void SetLoadAlert(time_t created, int createdMs, int partIx, float val); 00025 00026 void SetHardwareAlert(time_t created, int createdMs, int partIx, int code); 00027 00028 void SetTemperatureAlert(time_t created, int createdMs, int partIx, float temp); 00029 00030 void SetVoltageAlert(time_t created, int createdMs, int partIx, float val); 00031 00032 char AlertType[AlertTypeMaxLen]; 00033 00034 char Msg[AlertMsgMaxLen]; 00035 00036 int Index; 00037 00038 char MeasureName[MeasureNameMaxLen]; 00039 00040 float Value; 00041 00042 time_t Created; 00043 00044 int CreatedMs; 00045 }; 00046 00047 extern SafeCircBuf<Alert, AlertBufSize, uint32_t> AlertBuf; 00048 00049 #endif
Generated on Tue Jul 12 2022 16:05:13 by
1.7.2