umqtt.simple2 on esp8266

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Piterski1975
Posts: 4
Joined: Sat Jun 11, 2022 10:25 am

umqtt.simple2 on esp8266

Post by Piterski1975 » Tue Jun 14, 2022 7:12 pm

hello
I compiled the defaut micropython for esp8266.


Create build-GENERIC/firmware-combined.bin
esptool.py v1.2
flash 32832
.text 30720 at 0x40100000
.data 996 at 0x3ffe8000
.rodata 1080 at 0x3ffe83f0
padding 4032
irom0text 589656
total 626520


now I'm trying to install umqtt.simple2

import upip
upip.install('micropython-umqtt.simple2')


i have a bug
Installing to /lib/
Warning: Miropython SSL cer.....
Error memory allocation failed, allocating 8604 bytes, package may by partially installed


1. is it possible to install umqtt.simple2 on esp8266 ?
2. please give me tips or links.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: umqtt.simple2 on esp8266

Post by pythoncoder » Wed Jun 15, 2022 9:26 am

upip seems to be failing. I know of two ways to get round this. One is to clone micropython-lib to your PC and copy the relevant directory and contents to your ESP8266 (look under micropython).

The other approach is to use micropip to install the package to your PC from where it can be copied to the target. Here is an example invocation:

Code: Select all

$ ./micropip.py install -p ~/temp 'micropython-umqtt.simple'
Installing to: /home/adminpete/temp/
Warning: micropython.org SSL certificate is not validated
Installing micropython-umqtt.simple 1.3.4 from https://micropython.org/pi/umqtt.simple/umqtt.simple-1.3.4.tar.gz
[adminpete@capybara]: /mnt/qnap2/data/Projects/MicroPython/micropython-samples/micropip
Peter Hinch
Index to my micropython libraries.

Piterski1975
Posts: 4
Joined: Sat Jun 11, 2022 10:25 am

Re: umqtt.simple2 on esp8266

Post by Piterski1975 » Sat Jun 18, 2022 11:11 am

Thanks for you help
unix.png
unix.png (10.68 KiB) Viewed 1722 times
esp8266.png
esp8266.png (12.99 KiB) Viewed 1722 times
I compiled the version for ESP8288 and unix.

1. I would like to compile umqtt for modules on esp8266 ,unix
2. I would like to delete dht end ssd1306 for modules on esp8266
3. I would like to edit boot.py for modules on esp8266 ,unix
4. I would like add main.py for modules esp8266 ,unix

I am asking for links or hints

Post Reply