Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Nic Roche
#60882 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.
User avatar
By Nic Roche
#60930 They rarely succeed and possibly due to my disabling the httpServer (during debug iterations). I'm not sure what the 15 second interval is ,but the connections to api.thingspeak.com happen every minute; the first one 2 minutes after the GET to www.timeapi.org.