Skip to content

Commit 2da9843

Browse files
committed
Rename from ESP_Network to Network
1 parent c4dfdf5 commit 2da9843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
# pylint: disable=too-many-lines
132132

133133

134-
class ESP_Network:
134+
class Network:
135135
"""A wifi network provided by a nearby access point."""
136136

137137
def __init__( # pylint: disable=too-many-arguments
@@ -491,7 +491,7 @@ def get_scan_networks(self):
491491
channel = self._send_command_get_response(_GET_IDX_CHAN_CMD, ((i,),))[0]
492492
authmode = self._send_command_get_response(_GET_IDX_ENCT_CMD, ((i,),))[0]
493493
APs.append(
494-
ESP_Network(
494+
Network(
495495
raw_ssid=name,
496496
raw_bssid=bssid,
497497
raw_rssi=rssi,
@@ -608,7 +608,7 @@ def ap_info(self):
608608
"""Network object containing BSSID, SSID, authmode, channel, country and RSSI when
609609
connected to an access point. None otherwise."""
610610
if self.is_connected:
611-
return ESP_Network(esp_spi_control=self)
611+
return Network(esp_spi_control=self)
612612
return None
613613

614614
@property

0 commit comments

Comments
 (0)