mqttsub

command
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

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"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL