Skip to content

Commit

Permalink
correction enphase
Browse files Browse the repository at this point in the history
  • Loading branch information
xlyric committed Dec 1, 2023
1 parent c0934b3 commit 88326a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/functions/enphaseFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ bool Enphase_get_7_Production(void){
Serial.println("Enphase Get production : https://" + adr + url);
Serial.println("With SessionId : " + SessionId);

if (https.begin("http://" + adr + url)) {
if (https.begin("https://" + adr + url)) {
https.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
https.setAuthorizationType("Bearer");
https.setAuthorization(configmodule.token);
Expand Down Expand Up @@ -294,17 +294,17 @@ bool Enphase_get_7_Production(void){
nbErreurGetJsonProd++;
// NEW
https.end();
Enphase_get_7_JWT(); // pour reconnexion enphase
//Enphase_get_7_JWT(); // pour reconnexion enphase
// FIN NEW
}
https.end();
}
else {
https.end();
Serial.println("[2.Enphase Get production] GET... failed, error: " + String(httpCode));
//https.end();
//Serial.println("[2.Enphase Get production] GET... failed, error: " + String(httpCode));
nbErreurGetJsonProd++;
// NEW
Enphase_get_7_JWT(); // pour reconnexion enphase
//Enphase_get_7_JWT(); // pour reconnexion enphase
// FIN NEW
}
//https.end();
Expand Down

0 comments on commit 88326a4

Please sign in to comment.