Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By GregryCM
#29433 igrr,

From what I have seen on the iPod, no 'automatic reconnect to network if Internet not available' is likely true too.

Even though the devices had lost connection over night, the SimpleAP network still showed up in the network list. But neither device could connect.

Have other users been successful using the ESP as an Access Point, that can stay active for extended periods of time?

Thanks Again,
Greg
User avatar
By matkar
#29496 You are still on 1.2.0. I use SDK 1.3.0.
Here is the printout of my test with your code:
Initialization, 1x web access, sys printout:
Code: Select allConfiguring Access Point...
AP IP address: 192.168.4.1
HTTP server started
Page: Root, Heap: 36816, UpTime: 69922
sys
Free Heap: 37360
Boot Version: 31
CPU (MHz): 80
SDK Version: 1.3.0
Chip ID: 10357434
Flash Size(chip): 524288
Flash Size(IDE): 524288
Flash Speed: 40000000


After some time I tried to access the web page with PC:
Code: Select allPage: Root, Heap: 35296, UpTime: 6441127
Page: Root, Heap: 35272, UpTime: 6442733
Page: Root, Heap: 35280, UpTime: 6444546
Page: Root, Heap: 35288, UpTime: 6446050
Page: Root, Heap: 35640, UpTime: 6447564
Page: Root, Heap: 35176, UpTime: 6448968
Page: Root, Heap: 35296, UpTime: 6450477
Page: Root, Heap: 35272, UpTime: 6451985
Page: Root, Heap: 35384, UpTime: 6459329


And then with Android 4.4.4 tablet:
Code: Select allPage: Root, Heap: 35696, UpTime: 6479135
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6482076
Page: Not Found
Page: Root, Heap: 35416, UpTime: 6483902
Page: Not Found
Page: Root, Heap: 35376, UpTime: 6485588
Page: Not Found
Page: Root, Heap: 35216, UpTime: 6487295
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6489036
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6490424
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6491899
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6493278
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6494753
Page: Not Found
Page: Root, Heap: 35512, UpTime: 6496350
Page: Not Found
Page: Root, Heap: 35696, UpTime: 6497934
Page: Not Found


I don't know why I get "Page: Not Found" after a "Page: Root, Heap: xxxxx, UpTime: xxxxxxxxx" in case I access the web page with Android.

The heap hasn't dropped under 35k on my test. I'd say you should update to SDK 1.3.0 or even 1.4 if it is already avalible for Arduino platform.

Regards,
Mat
User avatar
By GregryCM
#29498 matkar,
Thank you for taking the time to look into this, I do appreciate it!
What staging version did you use, and is it 'clean' or have you made other patches?

Thank you,
Greg
User avatar
By mrburnette
#29541 I am using an AP for GPS broadcasts over UDP and for the last 108 hours it has been rock stable with 2 PC clients.... both or either. Transmission is every second.

Obviously HTTP over TCP is significantly different, but the AP underpinnings should be common.

https://www.hackster.io/rayburne/tardis-time-esp8266-ap-webserver-gps

Ray