-
Notifications
You must be signed in to change notification settings - Fork 240
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
Websockets support #303
Comments
Hi, I already tried the hideakitai lib and yours but I can't connect to the broker on port 443. I'm stuck in the loop attempting connection I'm using M5stack core2. |
Is it definitely websockets, and not just MQTT over SSL?. This is for an ESP32
Which gives the output
I've noticed that both libraries don't always connect on the first go, occasionally it takes a few retries. I'm not sure why. |
Thank you very much, I finally managed to connect to my broker but using hideakitai library. With yours, along with the example you provided, I wasn't able to compile because when invoking though i'm not sure about my headers management. |
There is another library based on this one (https://github.com/hideakitai/MQTTPubSubClient) that has websockets support, but I prefer using this library so I have ported over the websockets part.
https://github.com/PeeJay/arduino-mqtt/tree/websockets
At the moment I have used the same #define WEBSOCKETS approach to enable it, but I'm sure there is a better way if I thought about it like some sort of abstract class.
If this is something you are interested in I can keep working on it.
The text was updated successfully, but these errors were encountered: