-->
Page 1 of 2

server.handleClient();

PostPosted: Mon Nov 30, 2015 10:39 pm
by a2retro
So I am working on a simple esp-01 (client) to huzzah (server) project. In the main loop on the server we are calling server.handleClient();

On the client side in the loop we do a http get. If the result indicates a true condition, we get a temperature reading and then do a post back to the server. Piece-o-cake right?

Well the server gets the initial http_get but does not see the post. If we comment out the get and only do the post then the server sees that and responds.

Kind of stumped on why we can not do both a get and then a post back to back.

Any suggestions?

Glenn

Re: server.handleClient();

PostPosted: Mon Nov 30, 2015 10:42 pm
by Mmiscool
Can you post the code you are using. Would make it easier to debug.

Re: server.handleClient();

PostPosted: Mon Nov 30, 2015 11:09 pm
by a2retro
(1.05 KiB) Downloaded 805 times

(1.33 KiB) Downloaded 563 times


The base code was taken from one of the other forum posts and hacked on a bit.

Thanks for looking.

Glenn

Re: server.handleClient();

PostPosted: Mon Nov 30, 2015 11:17 pm
by a2retro
BTW: How does one get permission to post in the ESP8266 Arduino forum?

Edit NVM: I missed the sub forums under ESP8266 Arduino section.

Still looking for any ideas on the code provided.