espressif / esp-mqtt

ESP32 mqtt component
Apache License 2.0
603 stars 255 forks source link

Add ALPN support to esp-mqtt client #137

Closed dlkay0 closed 4 years ago

dlkay0 commented 4 years ago

My project requires TLS ALPN support in order to connect to MQTT Hub using mutual authentication on port 443. I had to extract a bunch of private headers and structs in order to effectively use esp_transport_list_get_transport() to get the mqtts transport handle and esp_transport_get_context_data() to get the ssl transport config so I could set the alpn_protos value.

Please expose an equivalent alpn_protos configuration value on esp_mqtt_client_config so I don't have to leave such brittle workaround in my code.

david-cermak commented 4 years ago

Hi @dlkay0

Thanks for the suggestion, make sense. will add this config option.