• Anthony Elder's avatar
    Add ALPN support to WiFiClientSecure (#5633) · 15bbd0a1
    Anthony Elder authored
    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
keywords.txt 813 Bytes