mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
BREAKING: Change return type of channel() (#7656)
This commit is contained in:
parent
0452f4728f
commit
81a10a48af
@ -254,7 +254,7 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg)
|
||||
* Return the current channel associated with the network
|
||||
* @return channel (1-13)
|
||||
*/
|
||||
int32_t ESP8266WiFiGenericClass::channel(void) {
|
||||
uint8_t ESP8266WiFiGenericClass::channel(void) {
|
||||
return wifi_get_channel();
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ class ESP8266WiFiGenericClass {
|
||||
WiFiEventHandler onSoftAPModeProbeRequestReceived(std::function<void(const WiFiEventSoftAPModeProbeRequestReceived&)>);
|
||||
WiFiEventHandler onWiFiModeChange(std::function<void(const WiFiEventModeChange&)>);
|
||||
|
||||
int32_t channel(void);
|
||||
uint8_t channel(void);
|
||||
|
||||
bool setSleepMode(WiFiSleepType_t type, uint8_t listenInterval = 0);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user