Blueforcer / awtrix3

Custom firmware for the Ulanzi Smart Pixel clock or self made awtrix. Getting started is easy as 1-2-3
https://blueforcer.github.io/awtrix3/
Other
1.26k stars 109 forks source link

[FEATURE REQUEST] MQTTS (MQTT via TLS) #489

Closed Moltey closed 7 months ago

Moltey commented 7 months ago

Feature Request

Describe the feature

However the connection is refused by the MQTT Server (Mosquitto):

OpenSSL Error[0]: error:1402542E:SSL routines:ACCEPT_SR_CLNT_HELLO:tlsv1 alert protocol version

Additional information

Screenshots

n/a

Logs

OpenSSL Error[0]: error:1402542E:SSL routines:ACCEPT_SR_CLNT_HELLO:tlsv1 alert protocol version

Additional context

I did not find any option to enable TLS in the documentation.

Blueforcer commented 7 months ago

TLS is currently not supported.

Moltey commented 7 months ago

Thank you for your feedback. I assumed, I configured something wrong.

Side note: I am using OpenDTU that provides MQTTS (MQTT TLS) on an ESP32, so it might be possible to implement. However, as I never coded anything on ESP32 myself, I would have no idea where to start.

Blueforcer commented 7 months ago

It order to establish TLS connection with the mqtt server a CA certificate has to be defined. This and the SSL handshake costs huge ammount of RAM, wich forces AWTRIX to crash because it getting out of memory. So unfortunally this is currently not possible with awtrix. sorry