Closed viola-m-li closed 2 months ago
Hi @viola-m-li, this is due to a recent change in how HiveMQ handles the certificates. The certificate for the default HiveMQ broker should be available in a new version v0.8.9
shortly (as long as https://github.com/sparks-baird/self-driving-lab-demo/actions/runs/9779179700 completes successfully). However, if you create your own HiveMQ broker, you will need to generate your own via the instructions in the warning at https://ac-microcourses.readthedocs.io/en/latest/courses/hello-world/1.1-running-the-demo.html, copied here for convenience:
Recently, HiveMQ Cloud changed such that
hivemq-com-chain.der
(a Certificate Authority (CA) file) is not transferrable across different broker instances. The latesthivemq-com-chain.der
file fromself-driving-lab-demo
will be hard-coded to theself-driving-lab-demo
public test credentials (i.e., what is used in Module 1 - Running the Demo), so the tutorials should run without issue as long as you are using that file. However, the assignment requires you to have your own HiveMQ Cloud broker instance, so you will need to generate ahivemq-com-chain.der
file specific to your instance and upload it to your microcontroller in place of the default one.
Do you have any suggestions for where this would best be clarified in the self-driving-lab-demo
repo? For example:
The manuscript is the hardest place to change this - I've requested a minor fix to a link before, but I don't think I've heard back from them after months. This is pretty specific to the journal.
Hi @sgbaird, thanks for the clarification! It works now.
Having a more useful error would have been the most helpful for me since this is the first thing you see and try to fix before going to the notebook. A section/note in the README that provides some updated information on changes since the release of the tutorial video (/manuscript) might also be a good idea.
@viola-m-li thanks! I updated main.py
on a separate branch. Do you mind testing this? https://github.com/sparks-baird/self-driving-lab-demo/blob/hivemq/src/public_mqtt_sdl_demo/main.py
@sgbaird I tested it and it looks good for me :)
Hi!
I'm having some issues setting up the software of the Pico W microcontroller. I tried to follow the given build instructions but I keep getting error messages related to the certificate verification:
I'm using the latest version of Thonny for MacOS (4.1.4 with Python 3.10) and the latest v0.8.8 sdl_demo.zip. For the MicroPython firmware I used the one that can be found in scripts/picow-setup/rp2-pico-w-20230309-unstable-v1.19.1-953-gb336b6bb7.uf2, which is dragged & dropped on to the RPI-RP2 drive.
Any help would be greatly appreciated. Thanks!