alsm / freeboard-mqtt

MQTT and IBM IoT Foundation plugins for freeboard.io
Eclipse Public License 1.0
60 stars 26 forks source link

Does not work with Mosquitto broker with mqtt #9

Open kirkokuev opened 6 years ago

kirkokuev commented 6 years ago

Hello, I have standalone freeboard on my server. It fails to connect with local mqtt broker Mosquitto. Broker is running mqtt protocol, not websockets. When I add datasource with all the correct credentials I get following in network inspection:

WebSocket connection to 'ws://192.168.0.1:1883/mqtt' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Connection failed: AMQJS0007E Socket error:undefined.

Any other mqtt client works fine.

karlp commented 4 years ago

The java script mqtt libraries can only talk websockets, so that's "expected behaviour"