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.
umqtt.simple2 on esp8266
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: umqtt.simple2 on esp8266
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:
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.
Index to my micropython libraries.
-
- Posts: 4
- Joined: Sat Jun 11, 2022 10:25 am
Re: umqtt.simple2 on esp8266
Thanks for you help
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
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