ESP8266WebServer and WiFiClient
Posted: Thu Jan 12, 2017 5:58 am
Hi,
I have a sketch that:
- Hosts some webpages
- Reads soil sensors
- Controls relays
- Controls servos
- GET requests to http://www.timeapi.org and api.thingspeak.com
The pages are hosted through ESP8266WebServer (and served via server.sendContent) and the GETs are using WiFiClient - client.print(String("GET ") +...
The first (and only) connection to http://www.timeapi.org works routinely but subsequent connections to api.thingspeak.com (after starting the webserver) mostly fail.
Is there a restriction (and strategy for handling) hosting a server and spawning a client?
There are a few ino and *.h files but I can post further details as needed.
Thanks.
I have a sketch that:
- Hosts some webpages
- Reads soil sensors
- Controls relays
- Controls servos
- GET requests to http://www.timeapi.org and api.thingspeak.com
The pages are hosted through ESP8266WebServer (and served via server.sendContent) and the GETs are using WiFiClient - client.print(String("GET ") +...
The first (and only) connection to http://www.timeapi.org works routinely but subsequent connections to api.thingspeak.com (after starting the webserver) mostly fail.
Is there a restriction (and strategy for handling) hosting a server and spawning a client?
There are a few ino and *.h files but I can post further details as needed.
Thanks.