@@ -342,11 +342,11 @@ int CNetIf::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress &gw)
342342 this ->dhcpStart ();
343343
344344
345- CLwipIf::getInstance ().sync_timer ();
345+ CLwipIf::getInstance ().syncTimer ();
346346 while (!this ->isDhcpAcquired ()) {
347347 CLwipIf::getInstance ().task ();
348348 }
349- CLwipIf::getInstance ().enable_timer ();
349+ CLwipIf::getInstance ().enableTimer ();
350350 }
351351
352352#endif
@@ -638,9 +638,9 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
638638 time_num++;
639639 }
640640
641- CLwipIf::getInstance ().sync_timer ();
641+ CLwipIf::getInstance ().syncTimer ();
642642 rv = CEspControl::getInstance ().setWifiMode (WIFI_MODE_STA);
643- CLwipIf::getInstance ().enable_timer ();
643+ CLwipIf::getInstance ().enableTimer ();
644644
645645 if ((rv=this ->scanForAp ()) != WL_SCAN_COMPLETED) {
646646 rv = -2 ;
@@ -668,7 +668,7 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
668668 memset (ap.bssid , 0x00 , BSSID_LENGTH);
669669 memcpy (ap.bssid , access_points[best_index].bssid , BSSID_LENGTH);
670670
671- CLwipIf::getInstance ().sync_timer ();
671+ CLwipIf::getInstance ().syncTimer ();
672672 rv=CEspControl::getInstance ().connectAccessPoint (ap);
673673
674674 if (rv == ESP_CONTROL_OK) {
@@ -680,7 +680,7 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
680680 } else {
681681 wifi_status = WL_CONNECT_FAILED;
682682 }
683- CLwipIf::getInstance ().enable_timer ();
683+ CLwipIf::getInstance ().enableTimer ();
684684 }
685685
686686exit:
@@ -690,10 +690,10 @@ int CWifiStation::connectToAP(const char* ssid, const char *passphrase) {
690690int CWifiStation::scanForAp () {
691691 access_points.clear ();
692692
693- CLwipIf::getInstance ().sync_timer ();
693+ CLwipIf::getInstance ().syncTimer ();
694694
695695 int res = CEspControl::getInstance ().getAccessPointScanList (access_points);
696- CLwipIf::getInstance ().enable_timer ();
696+ CLwipIf::getInstance ().enableTimer ();
697697
698698 if (res == ESP_CONTROL_OK) {
699699 wifi_status = WL_SCAN_COMPLETED;
@@ -707,11 +707,11 @@ int CWifiStation::scanForAp() {
707707
708708// disconnect
709709int CWifiStation::disconnectFromAp () {
710- CLwipIf::getInstance ().sync_timer ();
710+ CLwipIf::getInstance ().syncTimer ();
711711
712712 auto res = CEspControl::getInstance ().disconnectAccessPoint ();
713713
714- CLwipIf::getInstance ().enable_timer ();
714+ CLwipIf::getInstance ().enableTimer ();
715715
716716 return res;
717717}
@@ -942,9 +942,9 @@ int CWifiSoftAp::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress
942942 time_num++;
943943 }
944944
945- CLwipIf::getInstance ().sync_timer ();
945+ CLwipIf::getInstance ().syncTimer ();
946946 res = CEspControl::getInstance ().setWifiMode (WIFI_MODE_AP);
947- CLwipIf::getInstance ().enable_timer ();
947+ CLwipIf::getInstance ().enableTimer ();
948948
949949 CNetIf::begin (
950950 default_dhcp_server_ip,
@@ -958,7 +958,7 @@ int CWifiSoftAp::begin(const IPAddress &ip, const IPAddress &nm, const IPAddress
958958// TODO scan the other access point first and then set the channel if 0
959959// TODO there are requirements for ssid and password
960960int CWifiSoftAp::startSoftAp (const char * ssid, const char * passphrase, uint8_t channel) {
961- CLwipIf::getInstance ().sync_timer ();
961+ CLwipIf::getInstance ().syncTimer ();
962962 SoftApCfg_t cfg;
963963
964964 strncpy ((char *)cfg.ssid , ssid, SSID_LENGTH);
@@ -991,7 +991,7 @@ int CWifiSoftAp::startSoftAp(const char* ssid, const char* passphrase, uint8_t c
991991 // wifi_status = WL_AP_FAILED;
992992 }
993993
994- CLwipIf::getInstance ().enable_timer ();
994+ CLwipIf::getInstance ().enableTimer ();
995995 return rv;
996996}
997997
@@ -1131,17 +1131,17 @@ uint8_t CWifiSoftAp::getChannel() {
11311131}
11321132
11331133int CWifiSoftAp::setLowPowerMode () {
1134- CLwipIf::getInstance ().sync_timer ();
1134+ CLwipIf::getInstance ().syncTimer ();
11351135 auto res = CEspControl::getInstance ().setPowerSaveMode (1 );
1136- CLwipIf::getInstance ().enable_timer ();
1136+ CLwipIf::getInstance ().enableTimer ();
11371137
11381138 return res;
11391139}
11401140
11411141int CWifiSoftAp::resetLowPowerMode () {
1142- CLwipIf::getInstance ().sync_timer ();
1142+ CLwipIf::getInstance ().syncTimer ();
11431143 auto res = CEspControl::getInstance ().setPowerSaveMode (1 );
1144- CLwipIf::getInstance ().enable_timer ();
1144+ CLwipIf::getInstance ().enableTimer ();
11451145
11461146 return res;
11471147}
0 commit comments