An observation of my effort on this course:
I am about to begin in earnest on Module 7 (MQTT).
Having this much fun is downright sinful!
How is it possible to have so much fun during something that a lot of people would consider wasteful?
I should probably buy ALL the courses, because when I finish this one, I’ll just wonder about all the rest of them.
THE SUPPORT via THIS FORUM IS AWESOME!
PLEASE CONTINUE.
Ok, I’m off to MQTT.
Sara;
I’m very glad I found you folks. Tell Rui, I appreciate you two very much.
I just recently realized something and I thought you may be able to help.
I just finished Module 7, Units 3 & 4 and I started to carefully look at the code to see if I actually understood what I had been given.
When I first put together the Units(3 & 4), it didn’t work and I was convinced it had to be the broker and I was right.
I was a little worried when I saw the message from the broker upon its startup on the Pi. Something about being able to support ONLY local clients — I later found on the forum, others had the same issue and I saw your solution — no listener on port 1883!
That got me to thinking — how does MQTT and WiFi work? I thought I would read the documentation. Only trouble is it is not clear what documentation to read and where to get it!
When I went looking for the WiFi docs, I found many docs and the one I started looking at didn’t have the same APIs in it that were being used in the sketch from the tutorial.
Long story short, How can I know for sure what Library I’m using and where I can get the docs to read so I can actually understand the APIs that are being used in the code I’ given in the tutorial?
My attempt at reading the docs for BOTH WiFi AND MQTT was not very successful as there are lots of docs available since there are lots of libraries for those subjects.
By the way, often, the docs you find on Github are not very informative so I’ve become skeptical of Github as a source of docs!
Thanks so much for you support.
Ray
Hi Ray.
Usually, there aren’t docs for those things. Only the source code. And when there is documentation, it is very scarce.
To learn more about the methods, you have to look at the libraries source code on github. For example, in Unit 3 of MQTT, we use the AsyncMqttClient.h. So, to get more information, you go to the library page: https://github.com/marvinroger/async-mqtt-client
You can take a look at the src folder and check the .cpp and .h files to learn more about its methods and how they work. If you’re looking for a specific method/function of that library, you can use the “Search or jump to…” field at the top bar to search for that specific method on the library and find examples where it is used.
That’s the same for the Wi-Fi library. Here’s the link: https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi
Regards,
Sara
Thanks Sara.
I suspected as much, although I did find some documentation online for what I believe is the MQTT version we are using (it’s from Eclipse).
BTW: In Module 7 Unit 5 Installing Node-RED … the command given for install is:
bash <(curl -sL https://raw.githubusercontent.com/nodered/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
When I ran it, I got some message about it being updated to something else.
Do you know anything about that?
Thanks,
Ray