pht_sensor

command module
v0.0.0-...-795e79b Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: BSD-2-Clause Imports: 9 Imported by: 0

README

Virtual MQTT client generating pressure, humidity and temperature data for testing purpose.

Run MQTT broker

mkdir -p ./mosquitto/config
cat <<EOF | ./mosquitto/config/mosquitto.conf
> allow_anonymous true
> listener 1883
> EOF
docker network create mqtt
docker run -d --rm -p 1883:1883 --name mosquitto --network mqtt --volume ./mosquitto/config:/mosquitto/config:ro eclipse-mosquitto:latest

Subscribe to broker

mosquitto_sub -t '#' -h localhost -p 1883

Run PHT sensor

./pht_sensor

Run PHT Sensor container

docker run --network mqtt --volume ./config:/app/config:ro pht_sensor:0.9 -broker tcp://mosquitto:1883

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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