Publishing in Module 4 Assignment - _queue.Empty
#19
Answered
by
chasedamagician
chasedamagician
asked this question in
Hello World
-
Hello, I am currently working on the Module 4 Assignmnet and I am having some difficulties publishing the dictionary and results. Whenever I test the programs I get the following errors:
currently I am publishing the payload_dictionary and results as .json strings, I believe the issue is due to how I publish the strings:
and
Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Answered by
chasedamagician
Jul 8, 2024
Replies: 1 comment 6 replies
-
I think you also mentioned that you are seeing the messages on the HiveMQ broker. Do you see any different output on the microcontroller when you're running it? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, one of the main issues was that I was not careful of what QOS I used for the sensor_data_topic used by the microcontroller, I was using QOS 2 but for the Raspberry Pico I should have been using QOS 0 or 1, I also used the await function when I published the dictionary so the program would wait for the publish command before proceeding.