strange behavior on esp board

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
thetreerat
Posts: 15
Joined: Thu Apr 27, 2017 6:40 pm

strange behavior on esp board

Post by thetreerat » Sat May 20, 2017 12:18 am

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

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: strange behavior on esp board

Post by Damien » Tue May 23, 2017 12:20 pm

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.

User avatar
mcauser
Posts: 507
Joined: Mon Jun 15, 2015 8:03 am

Re: strange behavior on esp board

Post by mcauser » Tue May 23, 2017 1:12 pm

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']

Post Reply