Search found 32 matches
- Mon Dec 05, 2016 11:56 am
- Forum: ESP8266 boards
- Topic: Standalone webserver
- Replies: 3
- Views: 4131
Re: Standalone webserver
I think it depends a lot on what you are doing. Uploading all the python files to the micro python file system and having the runtime compile all of them, while running webrepl and your application code will quickly run you out of RAM. On the other hand, if you freeze the byte code on an image, the ...
- Mon Dec 05, 2016 4:34 am
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28731
Re: Simple HTTP framework
I've posted some improvements. While the server does not (yet) support SSL, some of the caveats are now mitigated by using a root path ('/www', but default) to service files. The server now supports a REST-based JSON API. Eventually I'd like to write a thick web client using backbone.js or equivalen...
- Mon Dec 05, 2016 4:30 am
- Forum: ESP8266 boards
- Topic: Standalone webserver
- Replies: 3
- Views: 4131
Re: Standalone webserver
You might consider looking at
https://github.com/fadushin/esp8266/tre ... on/daemons
and see if it fits your needs. It has support for file service as well as REST-based JSON APIs.
https://github.com/fadushin/esp8266/tre ... on/daemons
and see if it fits your needs. It has support for file service as well as REST-based JSON APIs.
- Sun Nov 27, 2016 3:29 pm
- Forum: ESP8266 boards
- Topic: Simple HTTP framework
- Replies: 25
- Views: 28731
Simple HTTP framework
I'm sure a million of these have been written already, but in the spirit of the recent FTP and Telnet servers, I have written a simple HTTP server and framework for micro python and the ESP8266. I feel like it's 1992 all over again! https://github.com/fadushin/esp8266/tree/master/micropython/uhttpd ...
- Fri Aug 26, 2016 12:31 pm
- Forum: ESP8266 boards
- Topic: Invalid boot sector?
- Replies: 8
- Views: 7878
Re: Invalid boot sector?
What I find telling is that flashing my ESP-01 never seems result in a bad file system, and it always seems to happen on an ESP-12 (using an ESP-12 on a breadboard of my own, as well as a Wemos D1 mini). However, if I read the full contents of my ESP-01 (all 1MB) and then write those contents back t...
- Fri Aug 19, 2016 2:11 pm
- Forum: ESP8266 boards
- Topic: Invalid boot sector?
- Replies: 8
- Views: 7878
Invalid boot sector?
I am starting this thread to help diagnose what I think may be the root cause of several symptoms already described on this forum, specifically, issues related to the Micropython file system, such as ENODEV issues, "FAT filesystem appears to be corrupted" issues, and errors reading or writing to the...
- Wed Jul 27, 2016 8:20 pm
- Forum: ESP8266 boards
- Topic: why os.listdir return ENODEV
- Replies: 28
- Views: 34592
Re: why os.listdir return ENODEV
I think that deploying a pre-built firmware image shouldn't require a full source tree (as well as a build of the esp-open-sdk). Yes, anyone who wants to peruse the source and build their own images should be able to do that, but it shouldn't be necessary. So I am more +1 for having instructions for...
- Wed Jul 27, 2016 12:09 pm
- Forum: ESP8266 boards
- Topic: why os.listdir return ENODEV
- Replies: 28
- Views: 34592
Re: why os.listdir return ENODEV
Thanks for that summary, @pfalcon -- very helpful to know.
- Tue Jul 26, 2016 11:50 am
- Forum: ESP8266 boards
- Topic: why os.listdir return ENODEV
- Replies: 28
- Views: 34592
Re: why os.listdir return ENODEV
Yeah thanks for that. I am using a separate power supply for the ESP-12 (and ESP-01), which provides 3.3v and can be driven off USB or a wall wart (I've tried both USB and wall wart power, just in case one was not providing continuous power). Some details of how I have set things up are at: http://b...
- Tue Jul 26, 2016 12:43 am
- Forum: ESP8266 boards
- Topic: why os.listdir return ENODEV
- Replies: 28
- Views: 34592
Re: why os.listdir return ENODEV
Okay, I may have spoken too soon. I was able to flash my ESP-12 successfully, and I was even able to do an `os.listdir()` successfully. But I was unable to create a new file, and in fact any attempt to create a file with that image crashed micro python. I was able to reproduce this on another ESP-12...