Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By ridge
#24576 @voyager, I am happy to hear it is working for you, without wdt events I hope?

Since this really is proteus74's thread for the WebConfig framework or template, I should open a new thread for any more examples I think.
To answer you directly, the Irrigation series is frozen. I learned a lot. There is still a long way to go before this IoT approach of user menus served directly to your browser bumps into any hardware limits.
The results of this approach in the hands of a seasoned web developer are going to be a standard I think.

It really has it all, peer to peer, local networking and by defining a port forward address in your router, access to your esp8266 from anywhere on the web. Security is a huge question in IoT, so for the time being, I plan to stay on the 'localhost' side of my router.
User avatar
By danbicks
#25095 Hi Guys,

Is any one else experiencing WDT issue? I have now an ESP12 dev board connected, any tickers used set a flag and is picked up in the main loop to run a specific routine. The ESP12 still crash's when accessing web pages from time to time sporadically.

Crash seems to occur mostly when saving config, although does happen from time to time refreshing network information.

This is a typical crash!

admin.html
style.css
favicon.ico
microajax.js
Number of server args = 0
Writing Config
save_zones_enabled_html
style.css

Exception (28):
epc1=0x401016a1 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000084 depc=0x00000000

ctx: cont
sp: 3ffebd00 end: 3ffec0a0 offset: 01a0

>>>stack>>>
3ffebea0: 0000005a 3fff8318 40210a98 3fff5c70
3ffebeb0: 00000000 00000000 76697463 3fff91f8
3ffebec0: 000005b4 3ffebee0 40210cb9 00000020
3ffebed0: 00000001 3ffebf4c 00000020 00000020
3ffebee0: 40200000 00000000 00000000 4020bf72
3ffebef0: 401017b1 3fff5b38 3fff8a98 00000000
3ffebf00: 00000001 402078aa 3fff7ac8 000005b4
3ffebf10: 3ffea454 3ffebf94 000005b4 000005b4
3ffebf20: 00000000 00000000 00000000 00000001
3ffebf30: 3ffea454 00000000 0000075a 4020891d
3ffebf40: 3ffea46c 000005b4 3ffebf70 4020bff0
3ffebf50: 4020bef9 3ffea454 3ffeacd0 3ffe9c5c
3ffebf60: 3ffebfc0 3ffeacd0 3ffea454 40208c41
3ffebf70: 3fff5af8 00000000 00000000 3fff5b38
3ffebf80: 0000001b 0000001b 3fff5b58 00000004
3ffebf90: 00000004 3fff8a98 0000075a 0000075a
3ffebfa0: 3fff8318 3fff6d20 3ffea454 3ffea488
3ffebfb0: 3ffeac54 3fff6d20 3ffea454 4020392c
3ffebfc0: 3fff8318 000006e4 000006e4 3ffec0c4
3ffebfd0: 3fff5d30 00000000 00000000 40208fae
3ffebfe0: 00000000 00000000 3ffea454 40208e15
3ffebff0: 0000000a 3fff5b80 00000003 00000003
3ffec000: 3fff5b38 00000017 00000017 3ffeaf30
3ffec010: 3ffe8004 00000000 40201bba 3ffeb080
3ffec020: 402010ae 00000001 3ffea454 3ffea420
3ffec030: 3ffe8004 000003e8 3ffea454 40208f05
3ffec040: 3ffe9a08 00000000 000003e8 001cd6c1
3ffec050: 3ffea46c 3fff7ac8 3ffec0f8 3ffea420
3ffec060: 00000000 3ffea444 3ffea3a8 40205f83
3ffec070: 40201bd9 00000000 00000000 3ffec0cc
3ffec080: 3fffdc20 00000000 3ffec0c4 40201c36
3ffec090: 00000000 00000000 3ffeb080 40100378
<<<stack<<<

ets Jan 8 2013,rst cause:1, boot mode:(3,7)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Starting ESP8266

Cheers Dans
User avatar
By ridge
#25150 What version are you on?
The version number is somewhat buried...
/home/<username>/.arduino15/packages/esp8266/hardware/esp8266/1.6.4-673-g8cd3697
is what I am running. When I went to the newer version, things went unstable and slower for me. I restored the .arduino15 folder I had backed up and all was well again.

I have to check the Show Hidden Files under the View tab to see the .arduino15 folder.
(This is on Linux. Mac and Windows users may be a little different.)

Other than liberally sprinkling in yield(0) calls to ward off any stack hiccups, nothing has changed in my example program. Everything is running well on my systems.

I am playing around with the mosquitto mqtt broker on a beaglebone black and the esp8266_pubsubclient.ino library lately. There seems to be no end to the entertainment these devices can provide!
User avatar
By DaniloFix
#25997 I tried loading my NodeMCU using esp-12e with ESP_WebConfig_Master example. Flashed fine. But I noticed that it was difficult to load the pages once I got connected to the ESP.

Tried a simple ping from terminal:

--- 192.168.4.1 ping statistics ---
124 packets transmitted, 47 packets received, 62.1% packet loss
round-trip min/avg/max/stddev = 0.908/55.091/364.515/82.694 ms

62.1% packet loss

Tried flashing with some other webserver examples and did the same...

--- 192.168.4.1 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.654/1.015/2.540/0.557 ms

--- 192.168.4.1 ping statistics ---
60 packets transmitted, 60 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.635/1.543/4.540/1.100 ms

Then tried to load your example again:

--- 192.168.4.1 ping statistics ---
12 packets transmitted, 6 packets received, 50.0% packet loss
round-trip min/avg/max/stddev = 2.510/45.995/114.656/35.044 ms

Also I couldn't load /admin.html at all... Something is not running as it should.

I'm on version 1.6.5-947-g39819f0