Comments (5)
This type of question is best raised in the forum where more people are likely to see it and respond. My suggestions are:
- Connect in main.py rather than boot.py or use the config. It is generally best to keep boot.py to an absolute minimum.
- Implement mqtt_as as frozen bytecode rather than as a cross-compiled file. The ESP8266 is extremely RAM limited. All testing on ESP8266 has been done in this way.
from micropython-mqtt.
@peterhinch
thanks for your respnse, but process of forzening to byte code take couple of my hours and not work!
is there any other way !?
i'l ask my question in forum too.
from micropython-mqtt.
I would start out by running one of the test programs e.g. range.py. That would prove your hardware and that your broker is running properly. I use mosquitto as the broker, and mosquitto_sub and mosquitto_pub to exercise the test program.
These test program has been heavily tested by myself and others on various hardware including esp8266. On the latter, owing to RAM limitations, I freeze mqtt_as and uasyncio.
from micropython-mqtt.
I'm totally stuck in freezing process and so far can't get any result ! Is it really the right solution for my problem ?
Is any good documentation about freezing micropython for eps8266 ?
from micropython-mqtt.
Is it really the right solution for my problem ?
I can't guarantee your code is bug free. However the test programs should run if you freeze mqtt_as and uasyncio. From that starting point you should be able to develop your own code.
Is any good documentation about freezing micropython for eps8266 ?
Build instructions are here. Once you've successfully built and run the standard firmware, place the modules you want to freeze in ports/esp8266/modules and re-build.
Please ask further questions in the forum. GitHub is for bug reports.
from micropython-mqtt.
Related Issues (20)
- config['gateway'] not defined - on Pi Pico W HOT 2
- Sporadic resets - not entirely clear why HOT 14
- MicroPython Unix port compatibility HOT 2
- publish to broker on an event trigger. HOT 2
- TypeError: object with buffer protocol required HOT 1
- wifi is treated as internal details only HOT 4
- can not handle 2 PINs at same time HOT 7
- access to the socket instead of the queue? HOT 2
- Memory allocation failures with MP 1.21 HOT 2
- malform packet and subnet traversal HOT 5
- Support for MQTTv5 HOT 46
- ESP32 MPv1.21.1 Wifi state goes briefly to IDLE after CONNECTING HOT 7
- Ethernet Support HOT 2
- ESP32 no reconnect on WiFi outage HOT 13
- ESP32 can't connect to wifi after soft reset HOT 3
- First time power up connection failed due to weak wifi HOT 4
- Issue with the memoryview HOT 3
- OpenSSL Error[0]: error:0A00010B:SSL routines::wrong version number HOT 1
- Unable to subscribe (Solved) HOT 2
- Esp8266 for wifi and mqtt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micropython-mqtt.