subscribe to Industruino MQTT over SSL

Hello every one,

I have a problem to subcribe to Mosquitto MQTT server/broker. I use the exemple made by Tom here and all is ok with Industruino. But I would like to subcribe to test.mosquitto.org server with port 8883 until my desktop using Javascript and impossible to connect to the server. Error message is : "WebSocket connection to 'wss://test.mosquitto.org:8883/mqtt' failed: ".

If anybody could help me that will be very nice.

Thanks a lot

Olivier

Olive Bai
Olive Bai
50
| 0 0 0
Asked on 3/31/22, 12:39 PM
0
vote
80 Views

Hi,

Thanks for your answer Tom. I changed the port with 8081 and my web socket works well.

Have a good day.

Olive Bai
Olive Bai
50
| 0 0 0
Answered on 4/1/22, 7:31 AM
0
vote

hi, i don't think you should be using a websocket on port 8883, see https://test.mosquitto.org/ for ports to use with web sockets

Tom
Tom
5675
| 1 1 3
Answered on 4/1/22, 1:42 AM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

68 follower(s)

Stats

Asked: 3/31/22, 12:39 PM
Seen: 80 times
Last updated: 4/1/22, 7:31 AM