Add a module to microPython

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Add a module to microPython

Post by MMliam » Thu Nov 18, 2021 2:21 am

I currently have microPython installed on an ESP-01S board with 1MB.
The current installed module complement:
>>> help('modules')
__main__ nisetup ucryptolib usocket
_boot lwip uctypes ussl
_onewire machine uerrno ustruct
_webrepl math uhashlib usys
apa102 micropython uheapq utime
btree neopixel uio utimeq
builtins network ujson uwebsocket
dht ntptime uos uzlib
ds18x20 onewire upip webrepl
esp port_diag upip_utarfile webrepl_setup
flashbdev uarray urandom websocket_helper
framebuf ubinascii ure
gc ucollections uselect

I would like to add the module "umqtt.simple2 2.1.1" to the existing modules.
Can I do that in REPL and if so how, or is there another procedure?

I'm using the Thonny IDE.

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: Add a module to microPython

Post by MMliam » Sat Nov 20, 2021 5:16 am

Got it done.

Post Reply