mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-30 10:47:15 +02:00
Make setHostname return true
This commit is contained in:
@ -640,9 +640,10 @@ const char * WiFiGenericClass::getHostname()
|
|||||||
return get_esp_netif_hostname();
|
return get_esp_netif_hostname();
|
||||||
}
|
}
|
||||||
|
|
||||||
void WiFiGenericClass::setHostname(const char * hostname)
|
bool WiFiGenericClass::setHostname(const char * hostname)
|
||||||
{
|
{
|
||||||
return set_esp_netif_hostname(hostname);
|
set_esp_netif_hostname(hostname);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int WiFiGenericClass::setStatusBits(int bits){
|
int WiFiGenericClass::setStatusBits(int bits){
|
||||||
|
@ -171,7 +171,7 @@ class WiFiGenericClass
|
|||||||
wifi_power_t getTxPower();
|
wifi_power_t getTxPower();
|
||||||
|
|
||||||
static const char * getHostname();
|
static const char * getHostname();
|
||||||
static void setHostname(const char * hostname);
|
static bool setHostname(const char * hostname);
|
||||||
|
|
||||||
static esp_err_t _eventCallback(arduino_event_t *event);
|
static esp_err_t _eventCallback(arduino_event_t *event);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user