Basic MQTT over websockets example [message #1796328] |
Wed, 10 October 2018 13:54  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04547 seconds