-->
Page 1 of 3

ESP8266 firmware (not AT) to send HTTP requests

PostPosted: Mon Feb 16, 2015 12:34 am
by rith87
Hello,

Is there some sample firmware that sends HTTP requests? I understand that there is the AT command approach, but I can't use the AT demo firmware since I hope to run esphttpd on my esp8266.

The other approach I'm seeing is that I can "reverse engineer" the AT+CIPSTART and AT+CIPSEND commands but if there's some sample code lying around, I'd prefer to use that instead.

Re: ESP8266 firmware (not AT) to send HTTP requests

PostPosted: Tue Feb 17, 2015 8:04 am
by rith87
Hmm.. here's what I'm doing:

Code: Select allwifi_set_opmode(1);

wifi_station_scan();

wifi_station_disconnect();

wifi_station_set_config();

wifi_station_connect();


This looks similar to the AT commands but I can't seem to connect to the wifi network.

How are the rest of the folks here combining esphttpd with http requests upon successfully connecting to a wifi network? Does everyone just go with esphttpd and kill off the service and switch to AT commands after?

Re: ESP8266 firmware (not AT) to send HTTP requests

PostPosted: Tue Feb 17, 2015 8:40 am
by Sprite_tm
I use http requests to grab the data for my Eink display. The code isn't ideal, but works and even understands 302 redirects. It's part of the eink source tree: git clone http://git.spritesserver.nl/espeink.git/ and take a look at src/httpdclient.c

Re: ESP8266 firmware (not AT) to send HTTP requests

PostPosted: Tue Feb 17, 2015 8:57 am
by alonewolfx2
eink with esp8266? is standalone ?