[SOLVED] How to install libraries in MicroPython (ESP8266)?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Suhanko
Posts: 7
Joined: Sun Feb 12, 2017 2:23 pm

[SOLVED] How to install libraries in MicroPython (ESP8266)?

Postby Suhanko » Sun Feb 12, 2017 2:28 pm

Hello, guys. I'm newbie related to install packages in MicroPython. I saw I can enable WEBREPL calling "import import webrepl_setup". Is there something like that to use MQTT? Do some documentation about package installing?

Thanks.
Last edited by Suhanko on Mon Feb 27, 2017 3:43 pm, edited 1 time in total.

demoontz
Posts: 9
Joined: Wed Feb 15, 2017 12:39 pm

Re: How to install libraries in MicroPython (ESP8266)?

Postby demoontz » Wed Feb 15, 2017 1:24 pm

hi.
according to https://github.com/micropython/micropython-lib just use in REPL:
>>> import upip
>>> upip.install("micropython-struct")
it puts files to /lib
u can put ur own lib to this folder. it one .py file. u can use mpfshell for upload files.

Suhanko
Posts: 7
Joined: Sun Feb 12, 2017 2:23 pm

Re: How to install libraries in MicroPython (ESP8266)?

Postby Suhanko » Thu Feb 16, 2017 4:12 pm

I thank you very very much!!!

demoontz
Posts: 9
Joined: Wed Feb 15, 2017 12:39 pm

Re: How to install libraries in MicroPython (ESP8266)?

Postby demoontz » Mon Feb 20, 2017 12:58 pm

but u can be i stuck with memory allocation error. so best way to get modules into firmware.(frozen modules)


Return to “Programs, Libraries and Tools”

Who is online

Users browsing this forum: No registered users and 1 guest