Alex's Corner - Week 4 - WiPy & Publishing/Subscribing With MQTT
-
@bucknall Since I can't attend the demo live, my questions are:
- How to handle authentification - user and password? Also can I keep passwords separate from the main code? Are passwords encrypted over the network?
- Bandwidth - what is max rate I can push readings over MQTT?
- Sleep mode - if I wake from sleep mode are messages that were sent whilst sleeping received?
- The docs mention a bug on line 57, I guess you will cover addressing that https://docs.pycom.io/pycom_esp32/pycom_esp32/tutorial/includes/mqtt.html
- One final question, is it possible to pass a variable into a running python program using MQTT? For instance, could I pass in (via MQTT) the variable which sets how frequently the Wipy takes a measurement?
Cheers!
p.s. if you do a demo, perhaps also use a local MQTT broker on your mac, with mosquitto? Seems the most generic approach to me rather than a cloud service..
p.p.s. for week 5 perhaps you could cover/mention the json library? :-) -
-
Perfect! Is the video available to download?
-
@robmarkcole it's hosted on YouTube so you can view it back whenever you wish. Regarding downloading it, I'm sure you can but I won't advise tools to do that as I believe it's against YouTube's Ts & Cs...!
-
@bucknall MQTT up and running now, thanks!

-
Hmm this working before lunch, what could be going on?

-
@robmarkcole I have a lot of problems using hivemq, its often down - maybe try another broker? like mosquitto?
-
OK great, now publishing temperature readings from my DS18B20 to my Mac via MQTT. However I note that client.connect() returns 0 even though the connection is working..

-
Hi @bucknall
I would like to have our LoPys interpret incoming subscription messages and execute a corresponding function. How do I go about saving subscribed messages as a string variable for example so I can compare them?
-
@RL-Auroraim You can see an example of subscribe here in the video: https://youtu.be/3NDPSbr5J14?t=12m57s that Alex posted. But it looks like he hasn't pushed that one to github yet? (correct @bucknall ?)
-
@PiAir That's correct, I'll make sure that's updated on both the docs & GitHub! Cheers!
-
Link in Youtube description seems to link to the week 5 forum topic
-
@bucknall just posted about sending images over MQTT, perhaps one for another Corner?
-
This post is deleted! -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login