Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Get ips from DuinoCoin pool
Browse files Browse the repository at this point in the history
Enables the master to get the pool ips from DuinoCoin.
  • Loading branch information
rassware authored Jan 2, 2022
1 parent d0ba9d3 commit 396ebc7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DuinoCoin_Esp_Async_Master/DuinoCoin_Pool.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

#if ESP8266
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#endif
#if ESP32
#include <HTTPClient.h>
#endif

#include <ArduinoJson.h>

const char * urlPool = "http://51.15.127.80:4242/getPool";
const char * urlPool = "https://server.duinocoin.com/getPool";

void UpdateHostPort(String input)
{
Expand All @@ -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))
{
Expand Down

0 comments on commit 396ebc7

Please sign in to comment.