feat: add check if wifi connected

This commit is contained in:
2023-08-11 20:57:50 +02:00
parent 908ca96c39
commit 46d3edef1d
3 changed files with 11 additions and 9 deletions

View File

@ -5,6 +5,7 @@
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#include <WiFiClientSecureBearSSL.h>
#include <ESP8266WiFi.h>
class DiscordAPI{
public:
@ -16,7 +17,7 @@ public:
bool sendMessage(String message);
private:
/**
* @brief webhook URL
*/
@ -24,14 +25,14 @@ private:
/**
* @brief http client
*
*/
HTTPClient* httpClient;
//WiFiClient* wifiClient;
/**
* @brief wifi client (for https)
*/
BearSSL::WiFiClientSecure* wifiClient;
};
#endif //DISCORD_API_H
#endif //DISCORD_API_H