Skip to content

Commit 5c7a735

Browse files
committed
more fix-ups from rebase; fixed param defs in __init__
1 parent bb679e8 commit 5c7a735

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,16 @@ def __init__(self, esp, secrets, status_pixel=None, attempts=2, connection_type=
5252
or RGB LED (default=None)
5353
:type status_pixel: NeoPixel, DotStar, or RGB LED
5454
:param int attempts: (Optional) Failed attempts before resetting the ESP32 (default=2)
55-
:param const con_type: (Optional) Type of WiFi connection: normal=1, WPA2 Enterprise=2
56-
:param ~adafruit_esp32spi_wifimanager.WiFiConnType wificonntype: The type of WiFi \
57-
connection to make. The default is "normal".
55+
:param const connection_type: (Optional) Type of WiFi connection: NORMAL or ENTERPRISE
5856
"""
5957
# Read the settings
60-
self._esp = esp
58+
self.esp = esp
6159
self.debug = False
6260
self.ssid = secrets['ssid']
6361
self.password = secrets['password']
6462
self.attempts = attempts
6563
self._connection_type = connection_type
66-
requests.set_interface(self._esp)
64+
requests.set_interface(self.esp)
6765
self.statuspix = status_pixel
6866
self.pixel_status(0)
6967

0 commit comments

Comments
 (0)