4G Version 5.1

This commit is contained in:
zhangsheng 2024-12-02 20:11:58 +08:00
parent 38b26eb7f0
commit 52016d2fb8
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ enum enumZigBeeTransmitStatus {
//#define NR5G_MODULE
//#define Q4G_MODULE
#define Q4G_MODULE
//#define WIFI_MODULE
//#define NR5G_MEIGE

View File

@ -96,7 +96,7 @@ int main(int argc, char *argv[]) {
#ifdef Q4G_MODULE
boost::thread startCSQ(GetCSQ);
startCSQ.detach();
print_info("4G_MODULE \n");
zlog_info(zbt, "4G_MODULE");
#endif
#ifdef WIFI_MODULE

View File

@ -126,7 +126,7 @@ open4G:
if (ret <= 0) {
timeoutflag++;
if (timeoutflag > 5) {
zlog_info("timeoutflag = %d\n", timeoutflag);
zlog_info(zbt,"timeoutflag = %d\n", timeoutflag);
timeoutflag = 0;
const char *str2 = "+QENG: ";
char csq[128] = {0};
@ -135,7 +135,7 @@ open4G:
strncpy(csq, pdata + 7, sizeof(csq));
GlobalConfig::NetStatus = GetOneContent(csq, 1, ",");
string signal = GetOneContent(csq, 13, ",");
std::string signal = GetOneContent(csq, 13, ",");
GlobalConfig::NetSignal = atoi(signal.c_str());
GlobalConfig::NetType = GetOneContent(csq, 2, ",");
zlog_info(zct, "NetStatus = %s,NetSignal = %d", GlobalConfig::NetStatus.c_str(), GlobalConfig::NetSignal);