Unable to connect using SSL on MKR1000

I have been trying to use the SSL feature on the MKR1000 recently. I have uploaded all the relevant certificates on the board, and I attempt to connect using SSL (see code), but the connection times out and is never made. I have also had issues before where it would connect to SSL on certain servers but not others despite both servers having their certificates correctly loaded. I am using WiFi101 0.16.1 and the firmware for my board is WINC1501 Model B 19.6.1.

 #include <WiFi101.h>
WiFiSSLClient internetClient;
...
int beginWiFi(char* ssid, char* pass, bool retry)
{
    bool retry_status = true;
    int status = WL_IDLE_STATUS;

    if (WiFi.status() == WL_NO_SHIELD) {
        Serial.print("WiFi Sheild not present, exiting...");
        return -1;
    }

    while (status != WL_CONNECTED && retry_status)
    {
        Serial.print("Attempting to connect to network, SSID: ");
        Serial.println(ssid);
        status = WiFi.begin(ssid, pass);
        delay(1000);
        retry_status = retry; //to prevent looping!
    }
    if (status != WL_CONNECTED) {
        Serial.println("Failed to connect to WiFi network");
        return -1;
    }
    Serial.println("Connected to WiFi Network!");
    return 0; //OK
}
....
// inside setup 
{
  beginWiFi(ssid, pass, true);
  int x = internetClient.connect("arduino.cc", 443); //also doesnt work when connectSSL + normal client class
  Serial.println(x); //always prints 0 (for some domains used to work, now doesn't)
}

try "www.arduino.cc"

Doesn't work, and it used to work just with "arduino.cc" (previously it had a problem with let's encrypt certificates, now it seems not to work with any certificate)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.