From 591445182b6029c3f702dac51fde643fe4d708e8 Mon Sep 17 00:00:00 2001 From: Shaun Setlock Date: Sat, 28 Jan 2023 16:18:36 -0500 Subject: [PATCH] Adding instructions in README for installing packages on newer micropython builds. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5856cb0..bb60775 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,18 @@ import upip upip.install('umqtt.simple') upip.install('umqtt.robust') ``` + +for later versions of MicroPython, you should use `mip` instead... + +``` +import network +wlan = network.WLAN(network.STA_IF) +wlan.active(True) +wlan.connect("Wi-Fi AP", "PASSWORD") + +import mip +mip.install('umqtt.simple') +mip.install('umqtt.robust') +``` + - Upload files onto PICO, adjust params (such as Wi-Fi Credentials // pins // etc ), deploy to your PICO W