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

12 ビュー (過去 30 日間)
Murali Rajakumar
Murali Rajakumar 2017 年 10 月 20 日
コメント済み: Shubham 2023 年 8 月 29 日
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 件のコメント
Paulo  Paulo
Paulo Paulo 2022 年 2 月 25 日
Olá estou com a mesma duvida, conseguiu resolver?
Shubham
Shubham 2023 年 8 月 29 日
Can you share the screenshot of the error?

サインインしてコメントする。

回答 (1 件)

Sylvain
Sylvain 2020 年 1 月 24 日
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'

カテゴリ

Help Center および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by