mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +03:00
Fix case of WiFi.channel() method
This commit is contained in:
parent
8fdb824e11
commit
f7dbb35c92
@ -251,7 +251,7 @@ uint8_t* ESP8266WiFiClass::BSSID(void)
|
||||
return reinterpret_cast<uint8_t*>(conf.bssid);
|
||||
}
|
||||
|
||||
int32_t ESP8266WiFiClass::Channel(void) {
|
||||
int32_t ESP8266WiFiClass::channel(void) {
|
||||
return wifi_get_channel();
|
||||
}
|
||||
|
||||
@ -353,7 +353,7 @@ uint8_t * ESP8266WiFiClass::BSSID(uint8_t i)
|
||||
return it->bssid;
|
||||
}
|
||||
|
||||
int32_t ESP8266WiFiClass::Channel(uint8_t i)
|
||||
int32_t ESP8266WiFiClass::channel(uint8_t i)
|
||||
{
|
||||
struct bss_info* it = reinterpret_cast<struct bss_info*>(_getScanInfoByIndex(i));
|
||||
if (!it)
|
||||
|
@ -160,7 +160,7 @@ public:
|
||||
*
|
||||
* return: channel
|
||||
*/
|
||||
int32_t Channel(void);
|
||||
int32_t channel(void);
|
||||
|
||||
/*
|
||||
* Return the current network RSSI. Note: this is just a stub, there is no way to
|
||||
@ -214,11 +214,11 @@ public:
|
||||
uint8_t * BSSID(uint8_t networkItem);
|
||||
|
||||
/**
|
||||
* return Channel of scanned wifi
|
||||
* return channel of scanned wifi
|
||||
* @param networkItem specify from which network item want to get the information
|
||||
* @return uint32_t Channel of scanned wifi
|
||||
* @return uint32_t channel of scanned wifi
|
||||
*/
|
||||
int32_t Channel(uint8_t networkItem);
|
||||
int32_t channel(uint8_t networkItem);
|
||||
|
||||
/**
|
||||
* return if the scanned wifi is Hidden (no SSID)
|
||||
|
@ -123,7 +123,7 @@ wl_status_t ESP8266WiFiMulti::run(void) {
|
||||
DEBUG_WIFI_MULTI("[WIFI] SSID: %s\n", WiFi.SSID());
|
||||
DEBUG_WIFI_MULTI("[WIFI] IP: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
DEBUG_WIFI_MULTI("[WIFI] MAC: %02X:%02X:%02X:%02X:%02X:%02X\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
DEBUG_WIFI_MULTI("[WIFI] Channel: %d\n", WiFi.Channel());
|
||||
DEBUG_WIFI_MULTI("[WIFI] Channel: %d\n", WiFi.channel());
|
||||
break;
|
||||
case WL_NO_SSID_AVAIL:
|
||||
DEBUG_WIFI_MULTI("[WIFI] Connecting Faild AP not found.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user