@@ -342,11 +342,11 @@ int CNetIf::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress &gw)
342
342
this ->dhcpStart ();
343
343
344
344
345
- CLwipIf::getInstance ().sync_timer ();
345
+ CLwipIf::getInstance ().syncTimer ();
346
346
while (!this ->isDhcpAcquired ()) {
347
347
CLwipIf::getInstance ().task ();
348
348
}
349
- CLwipIf::getInstance ().enable_timer ();
349
+ CLwipIf::getInstance ().enableTimer ();
350
350
}
351
351
352
352
#endif
@@ -638,9 +638,9 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
638
638
time_num++;
639
639
}
640
640
641
- CLwipIf::getInstance ().sync_timer ();
641
+ CLwipIf::getInstance ().syncTimer ();
642
642
rv = CEspControl::getInstance ().setWifiMode (WIFI_MODE_STA);
643
- CLwipIf::getInstance ().enable_timer ();
643
+ CLwipIf::getInstance ().enableTimer ();
644
644
645
645
if ((rv=this ->scanForAp ()) != WL_SCAN_COMPLETED) {
646
646
rv = -2 ;
@@ -668,7 +668,7 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
668
668
memset (ap.bssid , 0x00 , BSSID_LENGTH);
669
669
memcpy (ap.bssid , access_points[best_index].bssid , BSSID_LENGTH);
670
670
671
- CLwipIf::getInstance ().sync_timer ();
671
+ CLwipIf::getInstance ().syncTimer ();
672
672
rv=CEspControl::getInstance ().connectAccessPoint (ap);
673
673
674
674
if (rv == ESP_CONTROL_OK) {
@@ -680,7 +680,7 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
680
680
} else {
681
681
wifi_status = WL_CONNECT_FAILED;
682
682
}
683
- CLwipIf::getInstance ().enable_timer ();
683
+ CLwipIf::getInstance ().enableTimer ();
684
684
}
685
685
686
686
exit :
@@ -690,10 +690,10 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
690
690
int CWifiStation::scanForAp () {
691
691
access_points.clear ();
692
692
693
- CLwipIf::getInstance ().sync_timer ();
693
+ CLwipIf::getInstance ().syncTimer ();
694
694
695
695
int res = CEspControl::getInstance ().getAccessPointScanList (access_points);
696
- CLwipIf::getInstance ().enable_timer ();
696
+ CLwipIf::getInstance ().enableTimer ();
697
697
698
698
if (res == ESP_CONTROL_OK) {
699
699
wifi_status = WL_SCAN_COMPLETED;
@@ -707,11 +707,11 @@ int CWifiStation::scanForAp() {
707
707
708
708
// disconnect
709
709
int CWifiStation::disconnectFromAp () {
710
- CLwipIf::getInstance ().sync_timer ();
710
+ CLwipIf::getInstance ().syncTimer ();
711
711
712
712
auto res = CEspControl::getInstance ().disconnectAccessPoint ();
713
713
714
- CLwipIf::getInstance ().enable_timer ();
714
+ CLwipIf::getInstance ().enableTimer ();
715
715
716
716
return res;
717
717
}
@@ -942,9 +942,9 @@ int CWifiSoftAp::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress
942
942
time_num++;
943
943
}
944
944
945
- CLwipIf::getInstance ().sync_timer ();
945
+ CLwipIf::getInstance ().syncTimer ();
946
946
res = CEspControl::getInstance ().setWifiMode (WIFI_MODE_AP);
947
- CLwipIf::getInstance ().enable_timer ();
947
+ CLwipIf::getInstance ().enableTimer ();
948
948
949
949
CNetIf::begin (
950
950
default_dhcp_server_ip,
@@ -958,7 +958,7 @@ int CWifiSoftAp::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress
958
958
// TODO scan the other access point first and then set the channel if 0
959
959
// TODO there are requirements for ssid and password
960
960
int CWifiSoftAp::startSoftAp (const char * ssid, const char * passphrase, uint8_t channel) {
961
- CLwipIf::getInstance ().sync_timer ();
961
+ CLwipIf::getInstance ().syncTimer ();
962
962
SoftApCfg_t cfg;
963
963
964
964
strncpy ((char *)cfg.ssid , ssid, SSID_LENGTH);
@@ -991,7 +991,7 @@ int CWifiSoftAp::startSoftAp(const char* ssid, const char* passphrase, uint8_t c
991
991
// wifi_status = WL_AP_FAILED;
992
992
}
993
993
994
- CLwipIf::getInstance ().enable_timer ();
994
+ CLwipIf::getInstance ().enableTimer ();
995
995
return rv;
996
996
}
997
997
@@ -1131,17 +1131,17 @@ uint8_t CWifiSoftAp::getChannel() {
1131
1131
}
1132
1132
1133
1133
int CWifiSoftAp::setLowPowerMode () {
1134
- CLwipIf::getInstance ().sync_timer ();
1134
+ CLwipIf::getInstance ().syncTimer ();
1135
1135
auto res = CEspControl::getInstance ().setPowerSaveMode (1 );
1136
- CLwipIf::getInstance ().enable_timer ();
1136
+ CLwipIf::getInstance ().enableTimer ();
1137
1137
1138
1138
return res;
1139
1139
}
1140
1140
1141
1141
int CWifiSoftAp::resetLowPowerMode () {
1142
- CLwipIf::getInstance ().sync_timer ();
1142
+ CLwipIf::getInstance ().syncTimer ();
1143
1143
auto res = CEspControl::getInstance ().setPowerSaveMode (1 );
1144
- CLwipIf::getInstance ().enable_timer ();
1144
+ CLwipIf::getInstance ().enableTimer ();
1145
1145
1146
1146
return res;
1147
1147
}
0 commit comments