Store keys in WifiDevice object

This commit is contained in:
rodriguezst
2022-06-13 09:52:06 +00:00
committed by GitHub
parent 7481b1f4f0
commit 2391809166
2 changed files with 22 additions and 9 deletions

View File

@@ -6,6 +6,10 @@
#include "NetworkDevice.h"
#include "../SpiffsCookie.h"
#define TLS_CA_MAX_SIZE 1800
#define TLS_CERT_MAX_SIZE 1800
#define TLS_KEY_MAX_SIZE 1800
class WifiDevice : public NetworkDevice
{
public:
@@ -26,4 +30,7 @@ private:
WiFiClientSecure* _wifiClientSecure = nullptr;
PubSubClient* _mqttClient = nullptr;
SpiffsCookie _cookie;
char _ca[TLS_CA_MAX_SIZE];
char _cert[TLS_CERT_MAX_SIZE];
char _key[TLS_KEY_MAX_SIZE];
};