From 396ebc794cae3906e1d6bf5bb2951fd199625cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ra=C3=9Fmann?= Date: Sun, 2 Jan 2022 10:31:19 +0100 Subject: [PATCH 1/2] Get ips from DuinoCoin pool Enables the master to get the pool ips from DuinoCoin. --- DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino b/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino index 016926c..1500d09 100644 --- a/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino +++ b/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino @@ -6,7 +6,7 @@ #if ESP8266 #include -#include +#include #endif #if ESP32 #include @@ -14,7 +14,7 @@ #include -const char * urlPool = "http://51.15.127.80:4242/getPool"; +const char * urlPool = "https://server.duinocoin.com/getPool"; void UpdateHostPort(String input) { @@ -40,7 +40,8 @@ void UpdatePool() String httpGetString(String URL) { String payload = ""; - WiFiClient client; + WiFiClientSecure client; + client.setInsecure(); HTTPClient http; if (http.begin(client, URL)) { From 27dc77d9473d7d722633cfdb6d9f3d4dda49ba50 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Fri, 7 Jan 2022 11:06:59 -0300 Subject: [PATCH 2/2] Update DuinoCoin_Pool.ino --- DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino b/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino index 1500d09..2183671 100644 --- a/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino +++ b/DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino @@ -6,7 +6,7 @@ #if ESP8266 #include -#include +#include #endif #if ESP32 #include