A lightweight Alpine based MQTT client
10K+
A lightweight Alpine based MQTT client.
docker run -it --rm \
aksakalli/mqtt-client \
sub -h test.mosquitto.org -t "#" -v
mqtt-broker:docker run -it --rm \
--link mqtt-broker \
aksakalli/mqtt-client \
sub -h mqtt-broker -t "#" -v
docker run -d --rm \
--link mqtt-broker \
aksakalli/mqtt-client \
pub -h mqtt-broker -t "/test" -m "Hello World!"
Publish dummy OGC SensorThings Observation every second like:
{
"Datastream":{
"@iot.id":"1"
},
"result":42,
"resultTime":"2017-08-17T15:43:59Z"
}
by running the bash script publish.sh:
docker run -it --rm \
--link mqtt-broker \
aksakalli/mqtt-client \
publish
Content type
Image
Digest
Size
5.2 MB
Last updated
almost 7 years ago
docker pull aksakalli/mqtt-client