Skip to content

Commit 93bd4e1

Browse files
committed
Fix case of WiFi.channel() method
1 parent e8b753d commit 93bd4e1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ uint8_t* ESP8266WiFiClass::BSSID(void)
251251
return reinterpret_cast<uint8_t*>(conf.bssid);
252252
}
253253

254-
int32_t ESP8266WiFiClass::Channel(void) {
254+
int32_t ESP8266WiFiClass::channel(void) {
255255
return wifi_get_channel();
256256
}
257257

@@ -353,7 +353,7 @@ uint8_t * ESP8266WiFiClass::BSSID(uint8_t i)
353353
return it->bssid;
354354
}
355355

356-
int32_t ESP8266WiFiClass::Channel(uint8_t i)
356+
int32_t ESP8266WiFiClass::channel(uint8_t i)
357357
{
358358
struct bss_info* it = reinterpret_cast<struct bss_info*>(_getScanInfoByIndex(i));
359359
if (!it)

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class ESP8266WiFiClass
160160
*
161161
* return: channel
162162
*/
163-
int32_t Channel(void);
163+
int32_t channel(void);
164164

165165
/*
166166
* Return the current network RSSI. Note: this is just a stub, there is no way to
@@ -214,11 +214,11 @@ class ESP8266WiFiClass
214214
uint8_t * BSSID(uint8_t networkItem);
215215

216216
/**
217-
* return Channel of scanned wifi
217+
* return channel of scanned wifi
218218
* @param networkItem specify from which network item want to get the information
219-
* @return uint32_t Channel of scanned wifi
219+
* @return uint32_t channel of scanned wifi
220220
*/
221-
int32_t Channel(uint8_t networkItem);
221+
int32_t channel(uint8_t networkItem);
222222

223223
/**
224224
* return if the scanned wifi is Hidden (no SSID)

hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ wl_status_t ESP8266WiFiMulti::run(void) {
123123
DEBUG_WIFI_MULTI("[WIFI] SSID: %s\n", WiFi.SSID());
124124
DEBUG_WIFI_MULTI("[WIFI] IP: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
125125
DEBUG_WIFI_MULTI("[WIFI] MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
126-
DEBUG_WIFI_MULTI("[WIFI] Channel: %d\n", WiFi.Channel());
126+
DEBUG_WIFI_MULTI("[WIFI] Channel: %d\n", WiFi.channel());
127127
break;
128128
case WL_NO_SSID_AVAIL:
129129
DEBUG_WIFI_MULTI("[WIFI] Connecting Faild AP not found.\n");

0 commit comments

Comments
 (0)