forked from adikabintang/skripsi
-
Notifications
You must be signed in to change notification settings - Fork 0
MQTT Handson on IPv6 Network
Aldwin Hermanudin edited this page Feb 12, 2017
·
1 revision
To use MQTT on IPv6 network using Ubuntu, simply by installing mosquitto. Mosquitto already support IPv6
sudo apt install mosquitto
For Subcriber and Publisher install mosquitto clients on the desired host by executing,
sudo apt install mosquitto-clients
Publishing data is done by running, (assuming broker is in the same host)
mosquitto_pub -h ::1 -t test/test2 -m "lalala"
if broker IPv6 address is using link-local address, add interface information in the -h parameter,
mosquitto_pub -h fe80::a720:4523:e847:9e52%wlan0 -t test/test2 -m "lalala"
Parameter in subscribing on a IPv6 Broker is about the same, like so
mosquitto_sub -h fe80::a720:4523:e847:9e52%wlan0 -t test/test2