0

ESP32 won't connect to AIO after Big Sur update
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

ESP32 won't connect to AIO after Big Sur update

by thebakedbaker on Fri Feb 19, 2021 5:21 pm

I had a project using an ESP32 to transmit temp and humidity data from a sensor and Open Weather Map to Adafruit IO. The project was working for several weeks (I've got lots of data points in my Dashboard still). After updating my Mac to Big Sur, the first code update I compiled no longer connects to Adafruit IO.

To troubleshoot this, I have uninstalled Arduino and all related directories and re-installed all boards and libraries. Using examples such as the Sparkfun ESP32 Examples > Time > Simple time (which just uses WiFi.h), everything works fine (and my project is now using this as a workaround). When using Adafruit IO examples such as "adafruitio_00_publish" with the default config.h (with my credentials updated appropriately), I get the endless "." (or when using statusText() I get "Connecting to Adafruit IO," "Network disconnected," then endless "Disconnected from Adafruit IO") in the Serial Monitor.

I've been able to confirm that the code does seem to connect to the internet, as the device appears in the connected devices on my router and I can successfully ping the ESP32. The issue appears to be related to actually connecting to Adafruit IO. I have regenerated my IO Key and updated my config.h, but have been unable to get any code to successfully connect to Adafruit IO and am at a loss on what to troubleshoot next.

thebakedbaker
 
Posts: 9
Joined: Mon Sep 22, 2014 9:57 pm

Re: ESP32 won't connect to AIO after Big Sur update

by brubell on Mon Feb 22, 2021 11:00 am

There's a solution listed over at https://github.com/espressif/arduino-esp32/issues/4408, but I do not have Big Sur (still on Catalina) so I've been unable to test it.

brubell
 
Posts: 1256
Joined: Fri Jul 17, 2015 10:33 pm

Re: ESP32 won't connect to AIO after Big Sur update

by thebakedbaker on Tue Feb 23, 2021 11:58 pm

I posted that solution in viewtopic.php?f=56&t=175113, as I had already followed some of the steps to get my code to compile.

Unfortunately, my issue isn't that my code won't compile, it's that it installs on the EDP32 just fine, it just won't connect to Adafruit IO. As I noted previously, the code does cause the device to connect to WiFi, as I can see the device connected when I sign into my router, and I can successfully "Ping" the device using the Fing app on my iOS device.

It seems like the issue is with authenticating or connecting to Adafruit IO specifically.

thebakedbaker
 
Posts: 9
Joined: Mon Sep 22, 2014 9:57 pm

Please be positive and constructive with your questions and comments.