Search found 74 matches

by warren
Wed Nov 09, 2016 3:41 pm
Forum: ESP8266 boards
Topic: FTP Server
Replies: 27
Views: 32947

Re: FTP Server

Try the attached version, which I just pulled from the github site Thanks for the fast reply. Initially I got the same error (ECONNREFUSED). But then I looked at the other settings in Filezilla and set the "Tranfer settings" tab to "Active" (from "Default")... it works like a charm - thank you so m...
by warren
Wed Nov 09, 2016 12:32 pm
Forum: ESP8266 boards
Topic: FTP Server
Replies: 27
Views: 32947

Re: FTP Server

Another update: The server now accepts several clients, .... Thank you for this work. Unfortunately I get an error when I use Filezilla on Ubuntu: Output from uFTPd server (verbose = 2): FTP server started on 192.168.4.1:21 >>> FTP connection from:('192.168.4.2', 33178) Command=USER, Payload=anonym...
by warren
Tue Nov 08, 2016 3:09 pm
Forum: ESP8266 boards
Topic: Support loading of .mpy files
Replies: 13
Views: 20373

Re: Support loading of .mpy files

Thanks to the developers for the ongoing development work... It would be #hugely# helpful if someone could just post some simple instructions: -- How to compile to mpy files -- Where to put the mpy files so that they get frozen into the firmware build... I note that in the discussion on the original...
by warren
Thu Sep 15, 2016 8:48 pm
Forum: ESP8266 boards
Topic: Timer issues
Replies: 2
Views: 3835

Timer issues

The code is from the docs here: http://docs.micropython.org/en/latest/esp8266/esp8266/quickref.html#timers from machine import Timer tim = Timer(-1) tim.init(period=1000, mode=Timer.PERIODIC, callback=lambda t:print(2)) Depending on the values chosen (and the wind direction!), I sometimes get warnin...
by warren
Tue Sep 13, 2016 11:24 am
Forum: ESP8266 boards
Topic: Reset codes
Replies: 3
Views: 5025

Re: Reset codes

platforma wrote:I can see that machine.reset_cause() directly calls the function from the SDK.<snip>As you can see, we're missing REASON_EXCEPTION_RST, which would be the reset reason in your case. Perhaps we should add that to the esp8266/modmachine.c
That is very, very helpful - thanks
by warren
Tue Sep 13, 2016 5:07 am
Forum: ESP8266 boards
Topic: Reset codes
Replies: 3
Views: 5025

Reset codes

The docs give a list of constants for machine.reset_cause() http://docs.micropython.org/en/latest/esp8266/library/machine.html Numerically these are: >>> import machine >>> machine.PWRON_RESET 0 >>> machine.HARD_RESET 6 >>> machine.WDT_RESET 1 >>> machine.DEEPSLEEP_RESET 5 >>> machine.SOFT_RESET 4 I...
by warren
Sun Sep 11, 2016 9:20 pm
Forum: ESP8266 boards
Topic: Force socket closure?
Replies: 2
Views: 2766

Re: Force socket closure?

deshipu wrote:I'm not sure if it helps, but you can set a timeout on the socket itself.
Thank you - it is indeed exactly what I need...I cant understand how I missed this in the documentation...
by warren
Sun Sep 11, 2016 7:21 pm
Forum: ESP8266 boards
Topic: Force socket closure?
Replies: 2
Views: 2766

Force socket closure?

I expect that the answer to this is "No" - but people here have a lot more python experience than I, so I will ask... I have a micropython script running on an ESP8266 board. It makes a regular call to a cgi script on a remote server. It is using the socket code suggested in the docs. 99% of the tim...
by warren
Mon Aug 22, 2016 3:08 pm
Forum: ESP8266 boards
Topic: Sockets and OSError: -2
Replies: 10
Views: 12824

Re: Sockets and OSError: -2

I need to find a human readable version of "OSError: -2"....... I did some searching and I don't think this is possible. Thanks for tracking down where the error comes from...I appreciate the guidance. So there you go, it means that there was no ip_addr in call back. What does that mean? Hmmm....I ...
by warren
Mon Aug 22, 2016 3:04 pm
Forum: ESP8266 boards
Topic: Sockets and OSError: -2
Replies: 10
Views: 12824

Re: Sockets and OSError: -2

jms wrote:Does getaddrinfo() work with other hosts ?
It does not work with ANY host.

If I run exactly the same code in python on my Linux box (connected to the same AP as the ESP8266), It works perfectly..