Page 1 of 1

importing blynklib_mp.py issue

Posted: Sat May 15, 2021 9:00 am
by rambler_wf
Hello Ladies/Gents, I tried importing blynklib_mp.py, and got error as follow:

Code: Select all

Traceback (most recent call last):
             File "<stdin>", line 2, in <module>
             MemoryError: memory a

Code: Select all

import machine,time,network
import blynklib_mp as blynklib

#blynk=blynklib.Blynk(Auth)

wf=network.WLAN(network.STA_IF)
wf.active(True)
wf.scan()
wf.connect("testwifi","testwifi123")

while(wf.isconnected==False):
    print('connecting...')
   
print(wf.ifconfig())
I've coped the blynklib_mp.py to ESP01(1M flash) board, is there anything wrong?

Thank you!

Re: importing blynklib_mp.py issue

Posted: Wed Jun 09, 2021 11:13 am
by timmer
Hi,
I have a similar issue with the NodeMCU V3 (4MB). The system does not recognize the 'blynklib_mp' library, despite I placed it in a /lib folder on the NodeMCU.
I got earlier a the same memory error as you, but using and placing 'blynklib' in a /lib folder on the device solved that problem.
I use Thonny to interface.

Any idea why I get an unrecognized 'blynklib_mp' error ?