Search found 6 matches
- Tue Jan 10, 2017 3:09 am
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28674
Re: Simple HTTP framework
I have cleaned up my hacks to fdushin's code and posted it here: https://github.com/Adam5Wu/esp8266/blob/master/micropython/uhttpd/uhttpd.py It uses a slightly improved logic, which allows request to come from any established connections, although it can only handle one request at a time. The code w...
- Thu Jan 05, 2017 6:00 am
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28674
Re: Simple HTTP framework
I have implemented similar logic as described in the above post, and found it works pretty well! :) The code is a bit messy, I will cleanup and share later. One differences is that, I found closing those extra connection right after establish makes Chrome not happy, so instead of killing the extra c...
- Sun Jan 01, 2017 3:02 am
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28674
Re: Simple HTTP framework
Interesting. You might try increasing the backlog on TCP connections. Increase backlog does not help, and may make it worse, here is why: Chrome schedules requests across live (established or pending) connections. If the new request happen to schedule to the first connection, all is well. However, ...
- Thu Dec 29, 2016 4:29 am
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28674
Re: Simple HTTP framework
Fantastic work, fdushin! You project saves me considerable time and efforts in building a small Web application on my ESP8266. I do have one small suggestion: Since current implementation is blocking and handles one request at a time, downgrading to HTTP/1.0 will yield a better user experience. Some...
- Thu Dec 29, 2016 4:01 am
- Forum: ESP8266 boards
- Topic: Sockets and OSError: -2
- Replies: 10
- Views: 13021
Re: Sockets and OSError: -2
Not sure if OP figured out the problem. But I ran into similar situation and found an caveat, hope it helps someone: I had the default AP enabled with IP address 192.168.4.1/24 I then enabled STA and connected to another AP, who **happened to assign IP address in the same subnet 192.168.4.0/24** Aft...
- Wed Dec 28, 2016 4:07 am
- Forum: Development of MicroPython
- Topic: Noob contributer's question: where is the line of API compatibility?
- Replies: 0
- Views: 1478
Noob contributer's question: where is the line of API compatibility?
Happy holidays everyone! :D I have a long time interest in IoT and recently just got some free time and some ESP8266 on my hands. And without much difficulty, I found MicroPython, which I think is a perfect platform for IoT development. I discovered some lacking feature bindings on ESP8266, specific...