GET data from with Arduino MKR1010

I am trying to GET the daily peak output from my uploaded data to This data upload from the inverter is performed by a Raspi.
Now I want to GET the daily peak energy using a Arduino MKR1010 but my Arduino does/will not connect to the server.
All I get is a “disconnecting from server” message after about 10sec.
The data does exist as I can get it manually from my browser.
What is the solution?

My Arduino code is based on

#include <WiFiNINA.h>
#include “secrets.h”
WiFiSSLClient client;

char ssid[] = SECRET_SSID; // your network SSID (name)
char pass[] = SECRET_PASS; // your network password

int status = WL_IDLE_STATUS; // the Wifi radio’s status
char server[] = “”;

void setup() {
//Initialize serial:
//while(!Serial);//may hang if usb unplugged
for (int i = 0; i < 5; i++) {
// attempt to connect to Wifi network:
while ( status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
if (client.connect(server, 443)) { // port 80 for HTTP, port 443 for HTTPS ?
Serial.println(“connected to server”);

// Make a HTTP request:
client.println("GET /getstatus.jsp?key=myapireadkey&sid=mychID&d=20210530 HTTP/1.1");
client.println("Connection: close");


// if there are incoming bytes available
// from the server, read them and print them:
while (client.available()) {
char c =;

// if the server’s disconnected, stop the client:
if (!client.connected()) {
Serial.println(“disconnecting from server.”);

// do nothing forevermore:
while (true);

Serial.println(“end Setup”);

void loop() {


This issue now fixed. The MKR1010 requires the SSL certificate for installed using the Arduino IDE Firmware Updater Tool.