Skip to content

Commit 6ed54d3

Browse files
authored
Merge pull request #118 from brentru/fix-airlift-disconnection
Fix hang on connect for AirLift Co-Processors
2 parents c1d57e6 + a1b6d90 commit 6ed54d3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit IO Arduino
2-
version=3.5.1
2+
version=3.6.0
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library to access Adafruit IO.

src/wifi/AdafruitIO_AIRLIFT.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
156156
if (strlen(_ssid) == 0) {
157157
_status = AIO_SSID_INVALID;
158158
} else {
159-
_disconnect();
160159
// setup ESP32 pins
161160
if (_ssPin != -1) {
162161
WiFi.setPins(_ssPin, _ackPin, _rstPin, _gpio0Pin, _wifi);
@@ -165,6 +164,9 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
165164
// check esp32 module version against NINAFWVER
166165
firmwareCheck();
167166

167+
// disconnect from possible previous connection
168+
_disconnect();
169+
168170
// check for esp32 module
169171
if (WiFi.status() == WL_NO_MODULE) {
170172
AIO_DEBUG_PRINTLN("No ESP32 module detected!");

0 commit comments

Comments
 (0)