Documentation ¶
Overview ¶
This is a sensor station that uses a RTL8720DN running on the device UART2. It creates an MQTT connection that publishes a message every second to an MQTT broker.
In other words: Your computer <--> USB-CDC <--> MCU <--> UART2 <--> RTL8720DN <--> Internet <--> MQTT broker.
You must also install the Paho MQTT package to build this program:
go get -u github.com/eclipse/paho.mqtt.golang
You can check that mqttpub/mqttsub is running successfully with the following command.
mosquitto_sub -h test.mosquitto.org -t tinygo/tx mosquitto_pub -h test.mosquitto.org -t tinygo/rx -m "hello world"
Click to show internal directories.
Click to hide internal directories.