Code Monkey home page Code Monkey logo

Comments (7)

JJGO avatar JJGO commented on August 11, 2024

I tried cross compiling with mpy-cross mqtt_as.py and copying the generated mqtt-as.mpy and got an identical memory error to when it was copied as raw code.

I needed to delete the mqtt-async.py I was not aware the .py over .mpy priority. Adding pointers to pip install mpy-cross and mpy-cross ./mqtt_as.py to the tutorial would be great.

Also, clarifying the the frozen bytecode part would be great.

from micropython-mqtt.

peterhinch avatar peterhinch commented on August 11, 2024

Information on these issues belongs in MicroPython documentation rather than in that for any one specific application.

The official docs are here. The last time I looked the official docs were a little out of date with regard to manifests. See my notes here.

If you find problems with the official docs there is always the option of raising an issue or PR against them.

from micropython-mqtt.

ebolisa avatar ebolisa commented on August 11, 2024

Hi, thanks for sharing.
In the range.py file a msg is published but sub_cb() is not called. How do I subscribe so I can activate my relays?
Also, how do I get wlan parameters w/o modifing the lib?
TIA

from micropython-mqtt.

peterhinch avatar peterhinch commented on August 11, 2024

In my testing sub_cb is called. A message is printed and the blue LED flashes whenever a message is received. If this isn't occurring I would check that it is being transmitted to the correct topic. This may be verified using mosquitto_sub on a PC.

Please could you explain your query about wlan parameters.

from micropython-mqtt.

ebolisa avatar ebolisa commented on August 11, 2024

Thank you for getting back to me. I solved the first part of the problem this morning. I had a space in the topic's string.
As for the wlan, I usually pub the rssi so I can monitor its strength via a node-red gauge. I can visualize the self.dprint(s.ifconfig()) and self.dprint(s.status('rssi')) data from the library, but I need the call often the rssi from the main loop so it can be published. I tried library.function.variable but it doesn't work. Perhaps, it may be a good idea for the library to share said info so it can be available. BTW, I'm not a programmer, so, I apologize for the question.

from micropython-mqtt.

peterhinch avatar peterhinch commented on August 11, 2024

The range_ex.py example publishes RSSI.

from micropython-mqtt.

ebolisa avatar ebolisa commented on August 11, 2024

Will loot at it. Thank you again.

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.