|
|
@@ -703,16 +703,16 @@ typedef struct
|
|
|
}mail_info_t;
|
|
|
|
|
|
enum {
|
|
|
- MQTT_EMQX=0,
|
|
|
- MQTT_ALIYUN,
|
|
|
+ MQTT_PLAT_EMQX=0,
|
|
|
+ MQTT_PLAT_ALIYUN,
|
|
|
|
|
|
- MQTT_MAX
|
|
|
+ MQTT_PLAT_MAX
|
|
|
};
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
int id; //id
|
|
|
- int type; //0: emqx 1: aliyun
|
|
|
+ int plat; //0: emqx 1: aliyun
|
|
|
int mode; //0: open 1: close
|
|
|
char proto[16]; //mqtt, mqtts, ws, wss
|
|
|
char name[32]; //server name
|
|
|
@@ -981,6 +981,22 @@ enum{
|
|
|
#define SWITCH_CHN_DI_2_SET (1<<7)
|
|
|
|
|
|
|
|
|
+typedef struct {
|
|
|
+ int id;
|
|
|
+ int type;
|
|
|
+ char date[32];
|
|
|
+ char content[128];
|
|
|
+}alarm_data_t;
|
|
|
+
|
|
|
+typedef struct {
|
|
|
+ int ch;
|
|
|
+ char date[16];
|
|
|
+ char time[16];
|
|
|
+ int status;
|
|
|
+ int triggered;
|
|
|
+}timer_data_t;
|
|
|
+
|
|
|
+
|
|
|
typedef struct breaker_switch_sta{
|
|
|
uint16_t status;
|
|
|
uint16_t gather;
|