mosquitto - how to test MQTT server in ubuntu? -
i have installed mqtt server 'mosquitto' in ubuntu machine following instructions in link https://lukeisadog.wordpress.com/2014/02/27/setting-up-mqtt-on-ubuntu-round-1/ . not able test server. when type mosquitto
in command prompt getting below error.
1431416111: mosquitto version 1.4.2 (build date 2015-05-09 21:39:32+0000) starting 1431416111: using default config. 1431416111: opening ipv4 listen socket on port 1883. 1431416111: error: address in use
when type mosquitto –daemon –verbose
getting error "unknown option '–daemon'". please me on this.
if have install mosquitto repository, have started automatically you. try connecting e.g.
mosquitto_sub -t '$sys/#' -v
you may need install mosquitto-clients
package first.
if works, have instance of mosquitto running. if want run broker manually yourself, can stop automatically started instance sudo stop mosquitto
.
with regards unknown option, should note need 2 dashes, --daemon
, not -daemon
.
Comments
Post a Comment