Connecter un esp8266 au HOTSPOT FREEWIFI

pour ceux qui on mobile free vous pouvez aussi verifier que votre esp est bien connecté en appelant cette fonction qui envoi une notification a votre mobile
notice:

a ajouter mon code
void setup()
apres l'authentifiction

//parti haute du code
const char* host1 = "smsapi.free-mobile.fr";

//dans
void setup(){

//apres l'authentifiction
notification()
}
void notification() {
// Use WiFiClientSecure class to create TLS connection
WiFiClientSecure client;
Serial.print("connecting to ");
Serial.println(host1);
if (!client.connect(host1, httpsPort)) {
Serial.println("connection failed");
return;
}

if (client.verify(fingerprint, host)) {
Serial.println("certificate matches");
} else {
Serial.println("certificate doesn't match");
}
// pass fourni lors de le Notifications par SMS sur l'espace Free mobile
String ss = String(ssid);
String url = "/sendmsg?user=xxxxxxxxx&pass=xxxxxxxxxx&msg=" + (ss)+"carte de test";
Serial.print("requesting URL: ");
Serial.println(url);

client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host 1+ "\r\n" +
"User-Agent: BuildFailureDetectorESP8266\r\n" +
"Connection: close\r\n\r\n");

while (client.connected()) {
String line = client.readStringUntil('\n');
if (line == "\r") {
Serial.println("headers received");
break;
}
}

Serial.println("closing connection");
// Use WiFiClientSecure class to create TLS connection

/////////////////////////////////////////////
}