Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error -301 if using WiFi.config() #84

Closed
dabu667 opened this issue Nov 21, 2022 · 3 comments
Closed

Error -301 if using WiFi.config() #84

dabu667 opened this issue Nov 21, 2022 · 3 comments

Comments

@dabu667
Copy link

dabu667 commented Nov 21, 2022

ThingSpeak fails to connect to server if there's a WiFi.config(IPA, GATE, MASK); in the code. It works fine if the line is commented.
It took a long time to isolate the problem but this is it.
Error is -301.

@marcelstoer
Copy link

I am seeing this intermittently even without WiFi.config(). Haven't figured out what the root cause is yet.

@Therefore
Copy link

I'm getting the same issue. "Problem reading channel. HTTP error code -301"

This is with the example code in the library and only changing the SSID and password. I'm on a TTGO TBeam v1.1

@v-c
Copy link
Collaborator

v-c commented Dec 24, 2024

When you set up the gateway and subnet, please ensure that DNS is set up correctly as well. Also, please use the latest version of the ESP32's libraries and you should not see this problem.

@v-c v-c closed this as completed Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants