modify bugs
This commit is contained in:
parent
f4c938829b
commit
a8198eb741
@ -18,7 +18,7 @@ enum enumZigBeeTransmitStatus {
|
|||||||
|
|
||||||
|
|
||||||
//#define NR5G_MODULE
|
//#define NR5G_MODULE
|
||||||
#define Q4G_MODULE
|
//#define Q4G_MODULE
|
||||||
//#define WIFI_MODULE
|
//#define WIFI_MODULE
|
||||||
//#define NR5G_MEIGE
|
//#define NR5G_MEIGE
|
||||||
|
|
||||||
|
|||||||
@ -159,7 +159,7 @@ struct Param_41 {
|
|||||||
int ZigbeePower;
|
int ZigbeePower;
|
||||||
int ZigbeeRetry;
|
int ZigbeeRetry;
|
||||||
std::string nodeWaveSend;
|
std::string nodeWaveSend;
|
||||||
Param_41() : mdataNodeName(""), mdataNodeNo(""), mMeasurementID(""),mShortAddr("") ,mfeatureInterVal(0), mwaveInterVal(0), msamplingRate(0), mrange(0),
|
Param_41() : mdataNodeName(""), mdataNodeNo(""), mMeasurementID(""),mShortAddr("") ,mfeatureInterVal(5), mwaveInterVal(120), msamplingRate(0), mrange(0),
|
||||||
mAccSampleTime(0), mstartBrands(""), mstopBrands(""), menvelopeBandPass(""), mviff(0), mfaultFrequency(""), nodeWaveSend{""} {};
|
mAccSampleTime(0), mstartBrands(""), mstopBrands(""), menvelopeBandPass(""), mviff(0), mfaultFrequency(""), nodeWaveSend{""} {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -723,7 +723,7 @@ void JsonData::DataNodeStatusCheck() {
|
|||||||
}
|
}
|
||||||
if (count == nSize && nodeOnline && count != 0) {
|
if (count == nSize && nodeOnline && count != 0) {
|
||||||
zlog_error(zct, "ALL Node offline,count = %d", count);
|
zlog_error(zct, "ALL Node offline,count = %d", count);
|
||||||
char whereCon[64]={0};
|
char whereCon[100]={0};
|
||||||
sprintf(whereCon,"DATE(timestamp, 'unixepoch') = DATE('now') ORDER BY timeStamp DESC limit 0,1");
|
sprintf(whereCon,"DATE(timestamp, 'unixepoch') = DATE('now') ORDER BY timeStamp DESC limit 0,1");
|
||||||
std::string strCount = sqlite_db_ctrl::instance().GetData(" reboot_record ", "count", whereCon);
|
std::string strCount = sqlite_db_ctrl::instance().GetData(" reboot_record ", "count", whereCon);
|
||||||
if (atoi(strCount.c_str()) < 3)//当天大于三次不再重启进程
|
if (atoi(strCount.c_str()) < 3)//当天大于三次不再重启进程
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user