Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Basic MQTT over websockets example
Basic MQTT over websockets example [message #1796328] Wed, 10 October 2018 17:54 Go to next message
Matthew Wawrzyniec is currently offline Matthew WawrzyniecFriend
Messages: 4
Registered: October 2018
Junior Member
I am attempting to learn ho to use mosquitto over websockets and I cannot get this basic example to connect to the MQTT server. The host and port are correct in the code and I tested the mosquitto server from different devices on my network. Where do I go with this next?


Here is the console data:

connecting to 192.168.1.161 1883 websockets-3.htm:82:2
Firefox can't establish a connection to the server at ws://192.168.1.161:1883/mqtt. mqttws31.js:979:17
Firefox can't establish a connection to the server at ws://192.168.1.161:1883/mqtt. mqttws31.js:977:17
Failed websockets-3.htm:39:3
ports websockets-3.htm:71:2
port1883 websockets-3.htm:73:3
host websockets-3.htm:78:3
Re: Basic MQTT over websockets example [message #1796426 is a reply to message #1796328] Fri, 12 October 2018 17:27 Go to previous message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 83
Registered: March 2013
Member
I used your code to connect to an MQTT server (from paho.mqtt.testing) on the same machine as my browser, so I think that's ok. Browsers can require secure (TLS) connections, which might be your problem.
Previous Topic:Memory leaks in async MQTT C client
Next Topic:JSON Data from Paho mqtt client
Goto Forum:
  


Current Time: Thu Apr 25 01:51:35 GMT 2024

Powered by FUDForum. Page generated in 0.04877 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top