How to connect local host with mqtt client/broker??
Show older comments
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 Comments
Paulo Paulo
on 25 Feb 2022
Olá estou com a mesma duvida, conseguiu resolver?
Shubham
on 29 Aug 2023
Can you share the screenshot of the error?
Answers (1)
Sylvain
on 24 Jan 2020
0 votes
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'
Categories
Find more on ThingSpeak in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!