mqttclient

command
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 install the Paho MQTT package to build this program:

go get -u github.com/eclipse/paho.mqtt.golang

You can check that mqttpub is running successfully with the following command.

mosquitto_sub -h test.mosquitto.org -t tinygo

Jump to

Keyboard shortcuts

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