|
@@ -2,9 +2,9 @@
|
|
|
* Module_Wifi.c
|
|
|
*
|
|
|
* Created on: 2020-01-14
|
|
|
- * Update on: 2020-10-07
|
|
|
+ * Update on: 2020-11-19
|
|
|
* Author: Jerry Wang, Eason Yang, Folus Wen
|
|
|
- * Version: V0.13
|
|
|
+ * Version: V0.14
|
|
|
*
|
|
|
* Issue tracking:
|
|
|
* 1. Set AP mode should be waiting for 30 seconds.
|
|
@@ -261,7 +261,7 @@ int isValidCheckSum(uint8_t *message);
|
|
|
char *Support_InterfaceSTA[2] = {"mlan0", "wlan0"};
|
|
|
char *Support_InterfaceAP[1] = {"uap0"};
|
|
|
char *valid_Internet[2] = {"8.8.8.8", "180.76.76.76"};
|
|
|
-char *Version_And_Date[2] = {"V0.13","2020-10-07"};
|
|
|
+char *Version_And_Date[2] = {"V0.14","2020-11-19"};
|
|
|
int protocol_Version [] = {0,7,0};
|
|
|
|
|
|
int StoreLogMsg(const char *fmt, ...)
|
|
@@ -574,8 +574,12 @@ int getInterfaceInfo()
|
|
|
if(strncmp(buf, "default", strlen("default")) == 0)
|
|
|
break;
|
|
|
}
|
|
|
- sscanf(buf, "%*s%*s%s", tmp);
|
|
|
- substr(Wifi.currentGateway, tmp, 0, strlen(tmp));
|
|
|
+
|
|
|
+ if(strncmp(buf, "default", strlen("default")) == 0)
|
|
|
+ {
|
|
|
+ sscanf(buf, "%*s%*s%s", tmp);
|
|
|
+ substr(Wifi.currentGateway, tmp, 0, strlen(tmp));
|
|
|
+ }
|
|
|
}
|
|
|
pclose(fp);
|
|
|
|