ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By tve
#20969 I just cut release 0.10.0, which has an almost complete rewrite of the UI to use pure-css and ajax instead of server-side html templates. It also supports baud rate switching and changing the GPIO pin assignments. I provided two pin configurations that should work with esp-01 modules, but I have not tested those (I need to dig out a module from somewhere). Also, the pin assignment is saved to flash (the baud rate not yet). I believe I'm getting close to a "1.0", please let me know if you encounter issues (can't guarantee a fix though).

BTW, If you are planning to add functionality be aware of the fact that flash is almost full. The newer Espressif SDKs have crept up in size and the javascript has expanded. At some point I'll have to resort to minify and some clean-up... In the long run a 4MB flash will be required, I'm afraid. For example, I do not believe that I could turn on HTTPS support.
User avatar
By iothing
#20993 Wow this is great, however the version I just pulled from your site (https://github.com/jeelabs/esp-link/arc ... 0.0.tar.gz) is not very stable, just hit F5 twice in the browser in short interval and the esp8266 crashes:

Code: Select all Closed 0x3fff7d50, took 291ms, heap=13168
  6367> Closed 0x3fff8518, took 236ms, heap=15048
  6441> Closed 0x3fff7b60, took 445ms, heap=17408
  6560> GET /home.tpl (0x3fff7a28) 10.42.0.1:45646
  6698> Closed 0x3fff7a28, took 152ms, heap=17232
  6774> GET /pure-min.css (0x3fff7e90) 10.42.0.1:45647
  6827> Fatal exception (28):
  6827> epc1=0x4020c9e4, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0000000c, depc=0x00000000

 ets Jan  8 2013,rst cause:4, boot mode:(3,0)

wdt reset
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0

2nd boot version : 1.4(b1)
  SPI Speed      : 40MHz
  SPI Mode       : QIO
  SPI Flash Size & Map: 4Mbit(256KB+256KB)
jump to run user1 @ 1000

rl�
   
   
   
   
   
   Initializing esp-link
                        esp-link 0.10.0 - 2015-06-19 14:16:00 - f5ec262
                                                                       *** Flash config restore failed, using defaults ***
                                                                                                                          CONN led=0
                                                                                                                                    SER led=14
          Wifi init, mode=STA
   262> espFsInit(0x4022c4c8) returned 0
   266> Httpd init, conn=0x3fff4c00
   269> pcb->localport 80
   271> Serbridge pins: reset=12 isp=13
   275> pcb->localport 23
   277> ** esp-link ready
   280> mode : sta(18:fe:34:fd:f8:a6)
   283> add if0
   285> f 0, scandone
  1298> add 0
  1298> aid 2


Also when having configured a wifi to connect to and then switching back to ap+sta this setting is forgotten upon powercycle.