Code Monkey home page Code Monkey logo

Comments (5)

peterhinch avatar peterhinch commented on August 11, 2024

This type of question is best raised in the forum where more people are likely to see it and respond. My suggestions are:

  1. Connect in main.py rather than boot.py or use the config. It is generally best to keep boot.py to an absolute minimum.
  2. 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.

alirezaimi avatar alirezaimi commented on August 11, 2024

@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.

peterhinch avatar peterhinch commented on August 11, 2024

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.

alirezaimi avatar alirezaimi commented on August 11, 2024

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.

peterhinch avatar peterhinch commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.