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.
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.