Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By kissthu
#31540 Hi,
I tried the suggested method (R"=====( .... HTML ... )=====") to include html and javascript files which works perfectly with smaller size. I tried to include jQuery scripts (~84K) as well which did not work however I got no any error at compilation phase. Is there any limitation (especially size) of this method? Do you have suggestion how to solve to include larger script file like jQuery? I would like to use jQuery in case there is no internet connection....
Thanks.
User avatar
By mugginsjm
#32189 Anyone help please.
I have succesfully run this brilliant sketch on an ESP-12 and updated SSID etc via web interface. I have since run other sketches on the device that also use flash memory. Now when I re-install easy webconfig I am unable to store or recall any of my flash settings.
thanks
John
User avatar
By shoelessone
#32450 Hello all! Total newb to the ESP8266 here, I'm hoping somebody can point me in the right direction...

Edit: well roughly the same exact sketch seems to work OK on an esp-12e... could it be a hardware limitation of some sort (memory/space/etc?). I know my eps-01 works because I have other sketches that run fine, but it seems that the web server component doesn't work so well... Sometimes I can see the network, but when I connect I'm immediately disconnected, or I connect and try to get to 192.168.4.1 but the page never loads, etc. :(

I have a esp-01, and I've done the following steps:

1. Install the "stable" board manager
2. select "generic esp8266" from the arduino board menu
3. I downloaded the ESP_WebConfig "package" (zip) from John's website (Thanks John!), and I included it as a library in the Arduino IDE.
4. I opened the .ino file ESP_WebConfig_Master.ino with the arduino IDE
5. On the esp-01 I set the GPIO pin to ground
6. I clicked upload. Everything went well.
7. I disconnected (USB) the board from my computer, removed the GPIO pin from ground, and then plugged the board back in (to supply power)
8. The power came on, and afte some pause it seems that the network ("ESP" is the name from the sketch) came on, but I'm unable to connect to it.
9. I checked out the serial monitor and it seems to be in a loop with a lot of errors/etc. Is this normal? Does this mean anything to anybody?

Any tips/tricks/"you're doing it wrong!" sorts of ideas/comments?

I have a ESP-12E laying around also that I was going to try, but I really wanted to get things up and running on the esp-01.

Thanks for your help/time/advice!

Code: Select allets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Starting ES8266
Reading Configuration
Configurarion Found!
Configuring Wifi
HTTP server started

Exception (9):
epc1=0x4020e944 epc2=0x00000000 epc3=0x00000000 excvaddr=0x2de27b5a depc=0x00000000

ctx: sys
sp: 3ffffdb0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3fffff50:  4020e2a4 00000000 00000000 00000065 
3fffff60:  4020fdb6 00000000 3ffec980 3fff24c0 
3fffff70:  00000000 40213547 3ffec8fc 00000000 
3fffff80:  3fffdcb0 3ffec588 00000002 3ffea9b0 
3fffff90:  4021359a 3fffdab0 3ffeb9fc 40201789 
3fffffa0:  40000f49 40000f49 3fffdab0 40000f49 
<<<stack<<<

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

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

Exception (0):
epc1=0x4022ff80 epc2=0x00000000 epc3=0x00000000 excvaddr=0x2de27b5a depc=0x00000000

ctx: sys
sp: 3ffff930 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffad0:  40230036 00000021 00000000 00000000 
3ffffae0:  00000138 00000000 00000001 00000006