mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 02:28:28 +02:00
Bump arduino pico and update wifi methods (#4144)
This commit is contained in:
@@ -156,7 +156,7 @@ bool WiFiComponent::wifi_disconnect_() {
|
||||
int err = cyw43_wifi_leave(&cyw43_state, CYW43_ITF_STA);
|
||||
return err == 0;
|
||||
}
|
||||
// NOTE: The driver does not provide an interface to get this
|
||||
|
||||
bssid_t WiFiComponent::wifi_bssid() {
|
||||
bssid_t bssid{};
|
||||
uint8_t raw_bssid[6];
|
||||
@@ -165,12 +165,10 @@ bssid_t WiFiComponent::wifi_bssid() {
|
||||
bssid[i] = raw_bssid[i];
|
||||
return bssid;
|
||||
}
|
||||
// NOTE: The driver does not provide an interface to get this
|
||||
std::string WiFiComponent::wifi_ssid() { return WiFi.SSID(); }
|
||||
// NOTE: The driver does not provide an interface to get this
|
||||
std::string WiFiComponent::wifi_ssid() { return WiFi.SSID().c_str(); }
|
||||
int8_t WiFiComponent::wifi_rssi() { return WiFi.RSSI(); }
|
||||
// NOTE: The driver does not provide an interface to get this
|
||||
int32_t WiFiComponent::wifi_channel_() { return 0; }
|
||||
int32_t WiFiComponent::wifi_channel_() { return WiFi.channel(); }
|
||||
|
||||
network::IPAddress WiFiComponent::wifi_sta_ip() { return {WiFi.localIP()}; }
|
||||
network::IPAddress WiFiComponent::wifi_subnet_mask_() { return {WiFi.subnetMask()}; }
|
||||
network::IPAddress WiFiComponent::wifi_gateway_ip_() { return {WiFi.gatewayIP()}; }
|
||||
|
||||
Reference in New Issue
Block a user