|
@@ -1900,7 +1900,7 @@ void AlarmCtrlChn(int nChID, int nCtrl)
|
|
|
nCtrl, false);
|
|
nCtrl, false);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- sprintf(buff, "Over limit protection |$关闭$|$通道$|%d", _globalPowerMangerTemp->product_ch_id);
|
|
|
|
|
|
|
+ sprintf(buff, "%s |$关闭$|$通道$|%d",language_alarm_over_limit[0], _globalPowerMangerTemp->product_ch_id);
|
|
|
int nAlarmID=dev_insert_alarm_ctrl(__globalDeviceManage.db, _globalPowerMangerTemp->product_id, ALARM_TYPE_SENSOR, buff,"");
|
|
int nAlarmID=dev_insert_alarm_ctrl(__globalDeviceManage.db, _globalPowerMangerTemp->product_id, ALARM_TYPE_SENSOR, buff,"");
|
|
|
|
|
|
|
|
struct tm *t;
|
|
struct tm *t;
|
|
@@ -1938,7 +1938,7 @@ void AlarmCtrlAll(int nCtrl)
|
|
|
int rec=g_switch_set_all_ctrl(&__globalDeviceManage._globalRelaySampManger,_globalPowerMangerTemp->product_ch_type,_globalPowerMangerTemp->product_saddr,nCtrl);
|
|
int rec=g_switch_set_all_ctrl(&__globalDeviceManage._globalRelaySampManger,_globalPowerMangerTemp->product_ch_type,_globalPowerMangerTemp->product_saddr,nCtrl);
|
|
|
if(rec<0)log_i("Close All address:%d rec:%d:%s",nSendAddr,rec,modbus_strerror(errno));
|
|
if(rec<0)log_i("Close All address:%d rec:%d:%s",nSendAddr,rec,modbus_strerror(errno));
|
|
|
}
|
|
}
|
|
|
- sprintf(buff,"Over limit protection |$关闭$|$所有$|$通道$");
|
|
|
|
|
|
|
+ sprintf(buff,"%s |$关闭$|$所有$|$通道$",language_alarm_over_limit[0]);
|
|
|
int nAlarmID=dev_insert_alarm_ctrl(__globalDeviceManage.db, _globalPowerMangerTemp->product_id, ALARM_TYPE_SENSOR, buff,"");
|
|
int nAlarmID=dev_insert_alarm_ctrl(__globalDeviceManage.db, _globalPowerMangerTemp->product_id, ALARM_TYPE_SENSOR, buff,"");
|
|
|
|
|
|
|
|
struct tm *t;
|
|
struct tm *t;
|