CPE314 Computer Network MQTT Project
This is a part of CPE314 Computer Networks project for learning/practicing about the MQTT
cd ./.docker
docker compose up -d
(grafana) http exposed at port 4000
default username
admin
default passwordadmin
(influxdb) http exposed at port 8086
default username
admin
default passwordadminadmin
make build
port
: port of broker to exposed./dist/broker --port 1883
id
: unique id to identify the subscribertopic
: topic to subscribehostname
: hostname to subscribe to the brokerinflux-token
: token for authenticate to influxDBinflux-org
: org name for influxDBinflux-bucket
: bueckt name to connect to influxDBinflux-hostname
hostname to connect to influxDB ./dist/sub --id sub-1 --topic hello-world --hostname localhost:1883 --influx-token "tokentoken" --influx-org admin --influx-bucket mqtt --influx-hostname http://localhost:8086
id
: unique id to identify the publishertopic
: topic to publishhostname
: hostname to publish to the brokerinterval
: interval to publish the next message to the broker (second) ./dist/pub --id pub-1 --topic hello-world --hostname localhost:1883 --interval 180