There is my program`
#include <Adafruit_Fingerprint.h>
#include <WiFiNINA.h>
char ssid[x] = "SSID"; // your network SSID (name) between the " "
char pass[x] = "Pass"; // your network password between the " "
int keyIndex = 0; // your network key Index number (needed only for WEP)
int status = WL_IDLE_STATUS; //connection status
WiFiServer server(80); //server socket
WiFiClient client = server.available();
Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial1);
void setup() {
server.begin();
Serial.begin(9600);
finger.begin(57600);
Serial.println("Pronto");
WiFi.begin(ssid, pass);
}
/uint8_t getFingerprintID() {
uint8_t p = finger.getImage();
if (p == FINGERPRINT_OK) {
p = finger.image2Tz();
if (p == FINGERPRINT_OK) {
p = finger.fingerSearch;
}
}
}
return -1;
}/
void apriporta() {
if (client.connect(server, 443)) {
Serial.println("connected to server");
// Make a HTTP request:
client.println("GET /ExecHomeDevsCommands_ByName/36/open HTTP/1.1");
client.println("Host: 192.168.1.187:5001");
client.println("Connection: close");
client.println();
}
}
void printWEB() {
if (client) { // if you get a client,
Serial.println("new client"); // print a message out the serial port
String currentLine = ""; // make a String to hold incoming data from the client
while (client.connected()) { // loop while the client's connected
if (client.available()) { // if there's bytes to read from the client,
char c = client.read(); // read a byte, then
Serial.write(c); // print it out the serial monitor
if (c == '\n') { // if the byte is a newline character
// if the current line is blank, you got two newline characters in a row.
// that's the end of the client HTTP request, so send a response:
if (currentLine.length() == 0) {
// HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)
// and a content-type so the client knows what's coming, then a blank line:
client.println("HTTP/1.1 200 OK");
client.println("Content-type:text/html");
client.println();
//create the links
client.print("<a href=\"/H\">Scansiona dito</a><br>");
client.print("<a href=\"/L\">ApriCancello</a><br>");
client.print("<a href=\"/P\">ApriPorta</a><br>");
int randomReading = analogRead(A1);
client.print("Random reading from analog pin: ");
client.print(randomReading);
// The HTTP response ends with another blank line:
client.println();
// break out of the while loop:
break;
}
else { // if you got a newline, then clear currentLine:
currentLine = "";
}
}
else if (c != '\r') { // if you got anything else but a carriage return character,
currentLine += c; // add it to the end of the currentLine
}
if (currentLine.endsWith("GET /H")) {
}
if (currentLine.endsWith("GET /L")) {
if (currentLine.endsWith("GET /P")) {
}
}
}
// close the connection:
client.stop();
Serial.println("client disconnected");
}
}
}
void loop() {
client = server.available();
if (client) {
printWEB();
for (int i; i < 100; i++) {}
int p = finger.getImage();
if(p == FINGERPRINT_OK){
apriporta();
}
}
}`
When i launch this program i recive an error: no matching function for call to 'WiFiClient::connect(WiFiServer&, int)'