|
|
@@ -4135,7 +4135,7 @@ int dev_Alarm_T_AC_message(GlobalDeviceManager* globalDeviceManger, GlobalTreeAC
|
|
|
|
|
|
mail_post_alarm(ALARM_TYPE_POWER, 1, _AlarmType, AlarmText);
|
|
|
|
|
|
- cell_send_sms_all(ALARM_TYPE_POWER, 0, _AlarmType, AlarmText);
|
|
|
+ cell_send_sms_all(ALARM_TYPE_POWER, 1, _AlarmType, AlarmText);
|
|
|
|
|
|
alarm_para_t para;
|
|
|
para.id = __globalPowerTemp->product_ch_id;
|
|
|
@@ -4315,14 +4315,14 @@ int dev_sensor_Alarm_send_message(GlobalDeviceManager* globalDeviceManger,Global
|
|
|
int subtype=__globalPowerTemp->sensor_type;
|
|
|
mail_post_alarm(ALARM_TYPE_SENSOR, subtype, _AlarmType, AlarmText);
|
|
|
|
|
|
- cell_send_sms_all(ALARM_TYPE_POWER, 0, _AlarmType, AlarmText);
|
|
|
+ cell_send_sms_all(ALARM_TYPE_SENSOR, subtype, _AlarmType, AlarmText);
|
|
|
|
|
|
alarm_para_t para;
|
|
|
para.id = __globalPowerTemp->sensor_id;
|
|
|
para.nalarm = 1;
|
|
|
para.action = -1;
|
|
|
para.actionId = -1;
|
|
|
- mqtt_post_alarm(ALARM_TYPE_POWER, subtype, AlarmText, ¶);
|
|
|
+ mqtt_post_alarm(ALARM_TYPE_SENSOR, subtype, AlarmText, ¶);
|
|
|
|
|
|
AlarmTrapinfo pAlarmTrapinfo; ////Trap information
|
|
|
pAlarmTrapinfo.ID = __globalPowerTemp->sensor_id;
|