• A
    Add ALPN support to WiFiClientSecure (#5633) · 15bbd0a1
    Anthony Elder 提交于
    This adds a function to WiFiClientSecure to set the ALPN protocol.
    
    This is required for an MQTT client to connect to AWS IoT when using an AWS Custom Authorizer, as described here.
    
    Example code snippet:
    
    ...
    WiFiClientSecure wiFiClient;
    
    // ALPN protocol, needed with AWS custom authorizer
    const char *aws_protos[] = {"mqtt", NULL};
    
    void setup() {
      wiFiClient.setCACert(AWSCAPEM);
      wiFiClient.setAlpnProtocols(aws_protos);
    }
    ...
    15bbd0a1
ssl_client.h 1.6 KB