Comments (7)
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.
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.
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.
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.
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.
The range_ex.py example publishes RSSI.
from micropython-mqtt.
Will loot at it. Thank you again.
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.