Closed alirezaimi closed 4 years ago
This type of question is best raised in the forum where more people are likely to see it and respond. My suggestions are:
@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.
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.
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 ?
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.
Hi I cross compiled mqtt_as.py with mpy_cross and use it in my project on
esp8266
, this is my code and my problem is after i deploy main.py to board and restart it, keep restarting untile i kill it !I'm connected to wifi through boot.py and there is no need to do it in mqtt_as because of this i not fill wifi setting in config .