Pico W Micro Python MQTT of data to a RP4B
Posted: Sun Aug 14, 2022 5:14 pm
As some will be aware, I was initially struggling with getting some good data out of a Temp/Humidity sensor I bought for my new Pico W.
If you're not aware, but interested, you can find that thread here: viewtopic.php?f=21&t=12900
The end result of that, with LOTS of very good help from "Roberthh" (Thank you very much for that Roberthh!) is that I am now getting useful data from that sensor.
Now on to the next challenge!
Now, I want to transmit these Temperature and Humidity readings to my Raspberry Pi 4B (RP4B) elsewhere in the house, using my indoor Wi-Fi.
After many hours yesterday, I managed to cobble together some code from the official Pico W guidance which allows for me to switch on the Pico W Wi-Fi and connect it to my router with a DHCP IP address. I've yet to figure out how to make it a fixed IP address, but to be honest i've also got that same issue with mt RP4B.
I believe now I need to have my Pico W and my RP4B set up together with something called "MQTT" to enable me to transmit my Pico W data and receive it at my RP4B.
I believe that my Pico W has to be a "Publisher" and my RP4B has to be a "Broker" AND a "Subscriber". That's all I know.
Can I ask for guidance on what route to take to achieve my goal?
If you're not aware, but interested, you can find that thread here: viewtopic.php?f=21&t=12900
The end result of that, with LOTS of very good help from "Roberthh" (Thank you very much for that Roberthh!) is that I am now getting useful data from that sensor.
Now on to the next challenge!
Now, I want to transmit these Temperature and Humidity readings to my Raspberry Pi 4B (RP4B) elsewhere in the house, using my indoor Wi-Fi.
After many hours yesterday, I managed to cobble together some code from the official Pico W guidance which allows for me to switch on the Pico W Wi-Fi and connect it to my router with a DHCP IP address. I've yet to figure out how to make it a fixed IP address, but to be honest i've also got that same issue with mt RP4B.
I believe now I need to have my Pico W and my RP4B set up together with something called "MQTT" to enable me to transmit my Pico W data and receive it at my RP4B.
I believe that my Pico W has to be a "Publisher" and my RP4B has to be a "Broker" AND a "Subscriber". That's all I know.
Can I ask for guidance on what route to take to achieve my goal?