fix wifi bugs
This commit is contained in:
parent
ddc385b8d6
commit
4aac6d3017
@ -18,7 +18,7 @@ enum enumZigBeeTransmitStatus {
|
||||
|
||||
|
||||
//#define NR5G_MODULE
|
||||
#define Q4G_MODULE
|
||||
//#define Q4G_MODULE
|
||||
//#define WIFI_MODULE
|
||||
//#define NR5G_MEIGE
|
||||
|
||||
|
||||
@ -163,7 +163,7 @@ std::string JsonData::JsonCmd_Cgi_52(Param_52 ¶m) {
|
||||
boost::split(vecSsid, netssid, boost::is_any_of("\n"), boost::token_compress_off);
|
||||
jsBody["type"] = "SCAN";
|
||||
jsBody["enable"] = true;
|
||||
zlog_info(zct,"netssid : %s %d", netssid.c_str(), vecSsid.size());
|
||||
zlog_info(zct,"netssid : %s === %d", netssid.c_str(), vecSsid.size());
|
||||
for (unsigned int i = 1; i < vecSsid.size() - 1; i++) {
|
||||
std::vector<std::string> data;
|
||||
boost::split(data, vecSsid[i], boost::is_any_of("\t"), boost::token_compress_off);
|
||||
|
||||
@ -409,8 +409,8 @@ bool WPAClient::Request(WPAContext *context, const std::string &cmd, std::string
|
||||
res = select(wpa_context_->s + 1, &rfds, NULL, NULL, &tv);
|
||||
if (res < 0) return false;
|
||||
if (FD_ISSET(wpa_context_->s, &rfds)) {
|
||||
char temp[1024] = {0};
|
||||
int temp_len = 1024;
|
||||
char temp[1024 * 3] = {0};
|
||||
int temp_len = 1024 * 3;
|
||||
res = recv(wpa_context_->s, temp, temp_len, 0);
|
||||
if (res < 0) return false;
|
||||
if (res > 0 && temp[0] == '<') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user