# MQTT with a Pico Wireless pack

**URL:** https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294
**Category:** Support
**Created:** [April 11, 2022, 1:03pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294 "2022-04-11T13:03:36Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jjsanderson](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/jjsanderson/32/5608_2.png) [@jjsanderson](https://forums.pimoroni.com/u/jjsanderson)
#### Post date: [April 11, 2022, 1:03pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/1 "2022-04-11T13:03:36Z")

</div>

“This should be straightforward,” I thought, “I’ll just install umqtt.simple in the Thonny package manager.”

— turns out… that doesn’t work. I can sort-of get umqtt.simple installed by copying simple.py from micropython-lib into /lib/umqtt, but then it’s asking for usocket.

Has anyone managed to get a Pico with a Wireless pack talking over MQTT? Did you take notes? I’m at a bit of a loss to know where to start.

---

<div class="post-metadata">

### Author: ![bobha](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@bobha](https://forums.pimoroni.com/u/bobha)
#### Post date: [January 22, 2023, 2:54pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/2 "2023-01-22T14:54:15Z")

</div>

I’m having the same problem. I have a Pico W microPython script to read from a BME280 sensor (on the Breakout Garden). It works fine locally, but I want to connect via MQTT. I tried installing mqtt.simple via theThonny package manager, but it just fails. Nobody seems to respond.

---

<div class="post-metadata">

### Author: ![dave1979](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dave1979](https://forums.pimoroni.com/u/dave1979)
#### Post date: [January 22, 2023, 3:56pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/3 "2023-01-22T15:56:57Z")

</div>

Have you tried this one

> <https://github.com/pimoroni/enviro/blob/main/enviro/mqttsimple.py>

And use this build of micropython  
[https://github.com/pimoroni/pimoroni-pico/releases/download/v1.19.12/pimoroni-picow-v1.19.12-micropython.uf2](https://github.com/pimoroni/pimoroni-pico/releases/download/v1.19.12/pimoroni-picow-v1.19.12-micropython.uf2)

---

<div class="post-metadata">

### Author: ![dave1979](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@dave1979](https://forums.pimoroni.com/u/dave1979)
#### Post date: [January 22, 2023, 4:01pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/4 "2023-01-22T16:01:27Z")

</div>

This was the original guide a followed many months ago that worked for me.

> **[How to Send and Receive Data Using Raspberry Pi Pico W and MQTT (Updated)](https://www.tomshardware.com/how-to/send-and-receive-data-raspberry-pi-pico-w-mqtt)**
>
> $6 to build a sensor device with global reach.

---

<div class="post-metadata">

### Author: ![jjsanderson](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/jjsanderson/32/5608_2.png) [@jjsanderson](https://forums.pimoroni.com/u/jjsanderson)
#### Post date: [January 23, 2023, 9:28am UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/5 "2023-01-23T09:28:26Z")

</div>

Thanks for these suggestions. I agree that either of them should work, and I can confirm that the first one genuinely does. I haven’t yet tried migrating my MQTT code back to the umqtt.simple library package, which I’d completely forgotten about (durr!).

For anyone stumbling across this thread, however: MQTT is now straightforward _on a Pico W_. With the older Pico Wireless Pack which was the subject of this thread (which added wifi to a bare Pico) things won’t be as straightforward. If you have one of those, frankly… give up and replace it with a Pico W, it’s just not worth the hassle to do non-standard networking.

---

<div class="post-metadata">

### Author: ![reset42](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@reset42](https://forums.pimoroni.com/u/reset42)
#### Post date: [August 5, 2025, 3:17pm UTC](https://forums.pimoroni.com/t/mqtt-with-a-pico-wireless-pack/19294/6 "2025-08-05T15:17:54Z")

</div>

Hey there.  
This github repo may help you with that:

> **[GitHub - reset42/r42\_Gardensensor\_MicroPython: MicroPython based MQTT-Sensor on Raspberry Pi Pico...](https://github.com/reset42/r42_Gardensensor_MicroPython)**
>
> MicroPython based MQTT-Sensor on Raspberry Pi Pico W
