Sporadic "OSError: -1071239368" on socket sendto (UDP)
Posted: Sun Apr 24, 2016 11:46 am
While implementing my very simple remote syslog client i am running across a strange OSError on my Huzzah feather board. When using the Unix port everything works as intended. Seems to be a LWIP related issue!?
To reproduce the issue, check out the usyslog module, put the syslog*.py files into the scriots folder and run a make deploy to put them as frozen modules onto your ESP board.
My Huzzah does log initially, but throws messages as the following output. They are sporadically triggered by a log method of the UDPClient and last line in the trace is always line 82, the one sending UDP packets.The last line "pm open,type:2 0" seems to be some output from osdebug(), so i left it in the snippet, in case it is of use.
I am using version "MicroPython v1.7-150-g0d10e53 on 2016-04-24; ESP module with ESP8266". Haven't tried this on my alpha v4 firmware yet, but feel free to try!
(edit: less dramatic topic)
To reproduce the issue, check out the usyslog module, put the syslog*.py files into the scriots folder and run a make deploy to put them as frozen modules onto your ESP board.
My Huzzah does log initially, but throws messages as the following output. They are sporadically triggered by a log method of the UDPClient and last line in the trace is always line 82, the one sending UDP packets.
Code: Select all
>>> import usyslog_test
WLAN Connected:
Network configuration: ('192.168..', '255.255.255.0', '192.168..', '')
Starting syslog tests...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "usyslog_test", line 28, in <module>
File "usyslog", line 66, in info
File "usyslog", line 82, in log
OSError: -1071239368
>>> pm open,type:2 0
I am using version "MicroPython v1.7-150-g0d10e53 on 2016-04-24; ESP module with ESP8266". Haven't tried this on my alpha v4 firmware yet, but feel free to try!
(edit: less dramatic topic)