ESP8266 Webserver Project

Moderator: Sprite_tm

User avatar
By jithin
#20020 Hi, just tried out the latest package.
Usual changes before it'll compile on the standard esp-open-sdk v1.1.1
- #0 to #1 in c_types.h
- commenting out void user_rf_pre_init() in user_main.c
I removed the cats to make room for jquery.min.js, jquery.flot.js, and one the Flot examples from their website.
Works fast enough :D

I do have one question though.
The default behaviour on my Android phone is great. A notification will ask me to 'sign in' , and it'll lead straight to esp8266.local/index.tpl
Any other sites also redirect to the homepage

However, Firefox on my PC refused to load =192.168.4.1/index.tpl . At the bottom it said 'connecting to esp8266.local' and didn't budge. So it fetched the hostname, and went no further. It must be some issue with my system because it loaded once. no luck since.
the debug output goes:
reconnect
f 0, DNS: Q (type 0x1 class 0x1) for self-repair.mozilla.org
DNS: Q (type 0x1C class 0x1) for self-repair.mozilla.org
DNS: Q (type 0x1 class 0x1) for self-repair.mozilla.org
DNS: Q (type 0x1 class 0x1) for self-repair.mozilla.org
DNS: Q (type 0x1C class 0x1) for self-repair.mozilla.org
DNS: Q (type 0x1 class 0x1) for self-repair.mozilla.org
scandone
reconnect
f 0, DNS: Q (type 0x1 class 0x1) for tiles.services.mozilla.com
scandone
reconnect

Can your webserver magically redirect on PC browsers too?

Thanks a lot for your efforts
User avatar
By jithin
#20251 " Firefox 38.0 for ubuntu 1.0 "
I'm runnning ubuntu 14.04 64-bit. However, it was upgraded from a previous version which I don't recall exactly. Firefox upgraded along with it, so maybe something's wrong with this system. I also have apache installed.
firefox first notes ' looking up 192.168.4.1 ' , followed by ' connecting to esp8266.local ' . Ping times during this period are typically huge (100mS)

Give me some time to test on another system.

One other query.
- Can the user set a custom domain name instead of esp8266.local ?
I see that user_main.c in esphttpd example allows redirecting to a domain name of the coder's choosing, but the string "esp8266.local" is hardcoded in catdns.c inside esphttplib.
thanks
User avatar
By jithin
#20253 I'm going to blame this on firefox.
During my previous tests, I was alternating between my regular Internet connection( which went through an Ironport authentication server ) , and the ESP's network. Firefox maybe hung on to some dynamically configured settings related to Ironport ( No proxy settings were explicitly specified by me in any configuration file )
Now I'm at home using my regular connection, and can access the web server via its IP, or via the domain name. trying addresses like 'http://google.com' throws an error, but certain links like the 'reply' button on this page redirect to esp8266.local