Skip to content

RP2040 Ethernet HAT MQTT[Mosquitto] Publisher/Subscriber

RP2040 Ethernet HAT MQTT[Mosquitto] Publisher/Subscriber

WIZnet

Published February 20, 2023

Original author: louis_mOriginal source (new tab)

RP2040 Ethernet HAT MQTT[Mosquitto] Publisher/Subscriber

Project description

DETAILS

 

MQTT?

  • Lightweight message protocols created for use in M2M and the Internet of Things.

It works on TCP.

  • It consists of a <Broker><Publisher><Subscriber> structure rather than a <Server> and <Client> structure.

<Publisher> issues Topic.

<Subscriber> subscribes to Topic.

<Broker> serves as a relay and is suitable for 1:N communication.

RP2040 Ethernet HAT MQTT[Mosquitto] Publisher/Subscriber, MQTT?

WIZnet Circuitpython Link – https://github.com/Wiznet/RP2040-HAT-CircuitPython

WIZnet Circuitpython Link – https://github.com/Wiznet/RP2040-HAT-CircuitPython

WIZnet github code Upload to RP2040

From WIZnet github, take the file inside the library and copy it to the lib folder inside the Pico.

and MQTT/PubSub/W5x00_MQTT_pubsub.py file to code.py in Raspberry Pi pico.

WIZnet github code Upload to RP2040 WIZnet github code Upload to RP2040

 

Run MQTT mosquitto broker and client connect

Run MQTT mosquitto broker and client connect Run MQTT mosquitto broker and client connect

 

Execution Video Link

https://www.youtube.com/watch?v=vtMPr-vCbEo


 

Comments

Comments