WiFiNINA WiFiSSLClient pvoutput.org GET

I am trying to GET the daily peak power output from my uploaded data from my PVOutput.org account.
My Arduino MKR1010 does not connect to the server!!!

All I get is the "disconnecting from server" message after about 10sec.

The data does exist as I can get it manually typing the following in my Chrome browser

My MKR code compiles OK using the github example WiFiSSLClient.ino modified for my API's

What is the or my coding problem?

#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[] = "pvoutput.org";
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=myapikey&sid=mysid&d=20210530 HTTP/1.1");
client.println("Host: pvoutput.org/service/r2");
client.println("Connection: close");

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

// 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 problem now fixed.
The solution is that the MKR1010 must have the SSL certificate for pvoutput.org installed!
This is performed by using the IDE firmware updater program.

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