Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

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.
Please be positive and constructive with your questions and comments.

Cannot connect to internet, using Keyestudio ESP32 board

by Millhouse on Mon Apr 05, 2021 8:13 am

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?
Last edited by Millhouse on Mon Apr 05, 2021 8:24 am, edited 1 time in total.

Millhouse
 
Posts: 5
Joined: Mon Oct 17, 2016 11:17 pm

Re: Cannot connect to internet

by Millhouse on Mon Apr 05, 2021 8:19 am

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"

Millhouse
 
Posts: 5
Joined: Mon Oct 17, 2016 11:17 pm

Re: Cannot connect to internet, using Keyestudio ESP32 board

by brubell on Mon Apr 05, 2021 9:20 am

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.

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

Re: Cannot connect to internet, using Keyestudio ESP32 board

by Millhouse on Tue Apr 06, 2021 9:44 am

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,

Millhouse
 
Posts: 5
Joined: Mon Oct 17, 2016 11:17 pm

Re: Cannot connect to internet, using Keyestudio ESP32 board

by wj0419579 on Fri Apr 09, 2021 5:49 am

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.

wj0419579
 
Posts: 1
Joined: Fri Apr 09, 2021 5:48 am

Re: Cannot connect to internet, using Keyestudio ESP32 board

by Millhouse on Sun Apr 11, 2021 8:36 pm

Thanks. Seems to work fine using MQTT, not sure why. Will just go with it!

Millhouse
 
Posts: 5
Joined: Mon Oct 17, 2016 11:17 pm

Please be positive and constructive with your questions and comments.