Page 1 of 1

strange behavior on esp board

Posted: Sat May 20, 2017 12:18 am
by thetreerat
sometimes I get this output in the repl

LmacRxBlk:1

once it starts it repeats about every second, it even continues if you stop the program with a control c. seems the only way to stop it is with the reset buttion.

how do I find my bug that causing this?

Hal

Re: strange behavior on esp board

Posted: Tue May 23, 2017 12:20 pm
by Damien
It's likely that you're not cleaning up and closing open sockets when they are no longer needed, or that the ESP8266 is being inundated with wifi packets and they are overflowing its internal buffers. Please see viewtopic.php?t=3260 for the same problem reported by another user.

Re: strange behavior on esp board

Posted: Tue May 23, 2017 1:12 pm
by mcauser
I saw it too today after running:

Code: Select all

>>> import upip
>>> upip.install('urequests')
>>> res = urequests.get("http://example.com").json()
Was having trouble with it, then realised, I upip installed the wrong version of urequests.

Uninstall:

Code: Select all

>>> import os
>>> os.listdir()
['boot.py', 'lib']
>>> os.listdir('lib')
['urequests']
>>> os.listdir('lib/urequests')
['urequests.py']
>>> os.remove('lib/urequests/urequests.py')
>>> os.rmdir('lib/urequests')
(reset)

Install micropython version:

Code: Select all

>>> import upip
>>> upip.install('micropython-urequests')
>>> os.listdir('lib')
['urequests.py']