Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tls and websocket: how to connect #7

Open
leleb opened this issue Dec 16, 2023 · 3 comments
Open

tls and websocket: how to connect #7

leleb opened this issue Dec 16, 2023 · 3 comments

Comments

@leleb
Copy link

leleb commented Dec 16, 2023

how to connect using tls socket, websocket (ws://) or secure websocket (wss://) ?

@jferdelyi
Copy link
Member

jferdelyi commented Jan 4, 2024

It seems possible : eclipse/paho.mqtt.c#415
I have to modify a little bit the C++ code in order to select the protocol :

String m_connection_address = "tcp://" + p_host + ":" + p_port;

@jferdelyi
Copy link
Member

jferdelyi commented Jan 4, 2024

New version : 21a30f4
Not tested on WS, now the URI is more flexible
New MQTTClient fields :

  • Protocol (i.e tcp, ws, wss...)
  • End Broker Address (i.e the end of the path if needed)

The URI is now composed like this %PROTOCOL%://%BROKER ADDRESS%:%PORT%/%END%

Capture d’écran 2024-01-04 à 22 30 25

@jferdelyi
Copy link
Member

About TLS it is possible but I have to deep dive in order to know how to use the certificat, today it is possible to use User/Password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants