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

46 visualizaciones (últimos 30 días)
Murali Rajakumar
Murali Rajakumar el 20 de Oct. de 2017
Comentada: Shubham el 29 de Ag. de 2023
tried:
myMQTT = mqtt('tcp://broker.hivemq.com')
  • myMQTT = mqtt('tcp://localhost')
  • myMQTT = mqtt('localhost')
  • myMQTT = mqtt('LocalHost')
  • myMQTT = mqtt('tcp://LocalHost')
  • myMQTT = mqtt('127.0.0.1')
  • myMQTT = mqtt('tcp://127.0.0.1')
but for everything I get error. Plz help me guys Thanks
  2 comentarios
Paulo  Paulo
Paulo Paulo el 25 de Feb. de 2022
Olá estou com a mesma duvida, conseguiu resolver?
Shubham
Shubham el 29 de Ag. de 2023
Can you share the screenshot of the error?

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre ThingSpeak en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by