Hi
I am trying to use a non-Adafruit ESP32 board with Adafruit IO but cannot get it to connect to the internet. The board is a KS0413 keyestudio ESP32 Core Board, details here: https://wiki.keyestudio.com/KS0413_keye ... Core_Board
I am using the adafruitio_06_digital_in example code, with the only change to define my wifi network credentials and to add additional debugging info as per this FAQ: https://learn.adafruit.com/welcome-to-a ... io-project
I can connect to the internet if I don't use Adafruit IO but use the WiFi.h library instead.
Here is the relevant code:
// connect to io.adafruit.com
Serial.println("Connecting to Adafruit IO");
io.connect();
// wait for a connection
while(io.status() < AIO_CONNECTED) {
Serial.println(io.statusText()); // Serial.print(".");
delay(500);
}
Here is Serial Monitor output:
Connecting to Adafruit IO
Network disconnected.
Network disconnected.
Network disconnected.
Network disconnected.
Network disconnected.
Disconnected from Adafruit IO.
Disconnected from Adafruit IO.
Disconnected from Adafruit IO.
Disconnected from Adafruit IO.
...
Here is the compiler output:
Sketch uses 878346 bytes (67%) of program storage space. Maximum is 1310720 bytes.
Global variables use 39032 bytes (11%) of dynamic memory, leaving 288648 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.0-dev
Serial port COM4
Connecting......
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
...
Any help appreciated. Maybe this particular board or chip isn't supported?
Cannot connect to internet, using Keyestudio ESP32 board
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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- Millhouse
- Posts: 7
- Joined: Mon Oct 17, 2016 11:17 pm
Cannot connect to internet, using Keyestudio ESP32 board
Last edited by Millhouse on Mon Apr 05, 2021 8:24 am, edited 1 time in total.
- Millhouse
- Posts: 7
- Joined: Mon Oct 17, 2016 11:17 pm
Re: Cannot connect to internet
One more possibly relevant piece of info:
I have added this as an additional board manager URL: https://dl.espressif.com/dl/package_esp32_index.json
Then selected the Board as "ËSP32 Dev Module"
I have added this as an additional board manager URL: https://dl.espressif.com/dl/package_esp32_index.json
Then selected the Board as "ËSP32 Dev Module"
- brubell
- Learn User Page
- Posts: 2010
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Cannot connect to internet, using Keyestudio ESP32 board
Please contact Keyestudio for support regarding connecting your hardware to the internet. After you've connected to the internet, we'll try to assist in getting your hardware connected to IO.
- Millhouse
- Posts: 7
- Joined: Mon Oct 17, 2016 11:17 pm
Re: Cannot connect to internet, using Keyestudio ESP32 board
Thanks brubell. As i mentioned in my original post, I am able to connect to the internet if I don't use Adafruit IO but use the WiFi.h library instead. So it doesn't appear to be a board related issue.
In any case I changed over to MQTT and it works,
In any case I changed over to MQTT and it works,
- wj0419579
- Posts: 1
- Joined: Fri Apr 09, 2021 5:48 am
Re: Cannot connect to internet, using Keyestudio ESP32 board
The ESP32 has a few common problems, specially when you are trying to upload new sketches or install the ESP32 add-on on the Arduino IDE.
- Millhouse
- Posts: 7
- Joined: Mon Oct 17, 2016 11:17 pm
Re: Cannot connect to internet, using Keyestudio ESP32 board
Thanks. Seems to work fine using MQTT, not sure why. Will just go with it!
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.