Para conectar con el broker , en Linux instalar mosquitto-clients, ej en debian
apt-get install mosquitto-clients
luego para publicar un msg ejecutar
mosquitto_pub -h 190.97.11.11 -t test -m "hola!"
donde -t es el topico y -m es el mensaje
para subscribir al broker sus dispositivos ejecutar
mosquitto_sub -h 190.97.171.11 -t test