Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Receiving Memory Allocation Error in Import(Running Micropython on Raspberry PI PICO W)
Receiving Memory Allocation Error in Import [message #1858526] Wed, 05 April 2023 23:25 Go to next message
Paul Naish is currently offline Paul NaishFriend
Messages: 1
Registered: April 2023
Junior Member
I used the Thonny Package Installer to install PAHO MQTT. On a RPI P400 it runs fine. I get a memory allocation error on the PICO W. If I comment out the IMPORT, the program runs till it gets to an error calling MQTT.

Is the PAHO MQTT too large to run on PICO W?
Re: Receiving Memory Allocation Error in Import [message #1858833 is a reply to message #1858526] Tue, 25 April 2023 15:17 Go to previous message
Andy Piper is currently offline Andy PiperFriend
Messages: 18
Registered: November 2011
Location: Kingston upon Thames, UK
Junior Member

Yes, for a Pico W you're running MicroPython, which is not able to run Paho. You should look at a MicroPython MQTT library instead. There are some really good options listed via awesome-micropython. I regularly use micropython-mqtt

Developer Advocate | Eclipse Paho project | mqtt.org | andypiper.me
Previous Topic:Paho MQTT C++ support for http proxy
Next Topic:attribute _on_pre_connect error
Goto Forum:
  


Current Time: Thu Apr 25 09:47:32 GMT 2024

Powered by FUDForum. Page generated in 0.02409 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top