Shop OBEX P1 Docs P2 Docs Learn Events
ESP8266 GET /favicon problem — Parallax Forums

ESP8266 GET /favicon problem

Ray0665Ray0665 Posts: 231
edited 2015-05-30 20:25 in General Discussion
I am putting together a web server using the esp8266-01 chip,
and at this point I am successfully receiving and responding to GET / HTTP requests
and my web page displays on my browser

However my browser then sends a GET /favicon request which I successfully detect
as a +IPD,<chnl>,<datalen>:<data> message
however when I try to respond to the request I get a busy p.. and the system hangs.

does anyone have any Idea whats going on here?
Should I be looking or waiting for something from the esp8266?
when I reply to the request should I use the AT+CIPSEND command or just a string?

Thanks in advance for any help

Comments

  • MJBMJB Posts: 1,235
    edited 2015-05-29 15:43
    Ray0665 wrote: »
    I am putting together a web server using the esp8266-01 chip,
    and at this point I am successfully receiving and responding to GET / HTTP requests
    and my web page displays on my browser

    However my browser then sends a GET /favicon request which I successfully detect
    as a +IPD,<chnl>,<datalen>:<data> message
    however when I try to respond to the request I get a busy p.. and the system hangs.

    does anyone have any Idea whats going on here?
    Should I be looking or waiting for something from the esp8266?
    when I reply to the request should I use the AT+CIPSEND command or just a string?

    Thanks in advance for any help
    Did you have a look at the nodeMCU firmware?
    Easy to load and webserver code is there already. (did it on ESP-12 module)
    In saw it handling the favicon stuff.
    No low level AT codes any more -
    programming is in LUA
    and you can feed the data from the prop via serial as well.
  • Ray0665Ray0665 Posts: 231
    edited 2015-05-29 19:14
    I did look at that however the intended application is a self designed propeller based weather station and the esp8266 is replacing a wifly module mostly as a learning experience with an eye towards a future IOT application. So I really want to stay at the low level AT commands. But I do thank you for the response.
  • Cluso99Cluso99 Posts: 18,069
    edited 2015-05-30 17:52
    FYI I am also using NodeMCU and Lua with good success.

    I have used Thingspeak but would like to get my own webserver recording the data and serving it back up. No progress with this part yet.
    My server is hosted with one of the host services and I need to figure out how to do this.
  • macrobeakmacrobeak Posts: 354
    edited 2015-05-30 20:25
    MJB,
    My understanding of the AT server implementation is as follows;
    1) set up connections;
    AT+CIPMUX=1
    response->OK
    2) set up module as server using connection on a given port (say 80)
    AT+CIPSERVER=1,80
    3) the module listens for incoming connections.
    It will timeout repeatedly with response-> +IPD, NOT found
    When one arrives, it will respond with "Link" and some data from the incoming like, +IPD,0,287.HTTP....incoming stuff.....
    4) Then serve your first page line from the module
    AT+CIPSEND=0,0033
    <TITLE>ESP8266 server</TITLE>
    response-> SEND OK
    5) serve up as many lines as you want with multiple AT+CIPSEND commands
    6) When you have served up your webpage close the connection
    AT+CIPCLOSE=0
    7) Go back to step 2 and listen for responses from the other computer and act on them accordingly.

    Please publish your steps and findings to date.

    Dr Ac has done all the hard upfront work on this - have you followed his thread?
    http://forums.parallax.com/showthread.php/157430-Low-cost-wifi-module-ESP8266/page8
Sign In or Register to comment.