Skip to content

Commit

Permalink
remove ssl wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthas committed Oct 15, 2023
1 parent 3c8b601 commit 89fa507
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions firmware/lib/cw-commons/CWHttpClient.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include <WiFi.h>
#include <WiFiClientSecure.h>
//#include <WiFiClientSecure.h>
#include <WiFiClient.h>

struct ClockwiseHttpClient
{
Expand All @@ -12,7 +13,7 @@ struct ClockwiseHttpClient
return &base;
}

void httpGet(WiFiClientSecure *client, const char *host, const char *path, const uint16_t port)
void httpGet(WiFiClient *client, const char *host, const char *path, const uint16_t port)
{
Serial.printf("[HTTP] GET request to '%s%s' on port %d\n", host, path, port);

Expand All @@ -22,7 +23,7 @@ struct ClockwiseHttpClient
return;
}

client->setInsecure();
//client->setInsecure();
client->setTimeout(10000);
if (!client->connect(host, port))
{
Expand Down

0 comments on commit 89fa507

Please sign in to comment.