How to connect local host with mqtt client/broker??

217 views (last 30 days)
myMQTT = mqtt('tcp://')
  • myMQTT = mqtt('tcp://localhost')
  • myMQTT = mqtt('localhost')
  • myMQTT = mqtt('LocalHost')
  • myMQTT = mqtt('tcp://LocalHost')
  • myMQTT = mqtt('')
  • myMQTT = mqtt('tcp://')
but for everything I get error. Plz help me guys Thanks

Answers (1)

Sylvain on 24 Jan 2020
Check your IP adress of your localhost (ipconfig or ifconfig if you are linux user): this would be the address to use : 'tcp://'

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!