Prepare esp32 for https

This commit is contained in:
Florian Hoss 2022-07-29 17:41:32 +02:00
parent 8180f90016
commit 2e4cdb3734
4 changed files with 65 additions and 4 deletions

View file

@ -1,10 +1,11 @@
#include "Arduino.h"
#include "theSecrets.h"
#include "theCerts.h"
#include "WiFi.h"
#include "lwip_hooks.h"
#include "esp32/Firewall.hpp"
#include "esp32/API.hpp"
#include "Firewall.hpp"
#include "API.hpp"
fw::Firewall *firewall;
fw::API *firewallApi;
@ -28,7 +29,7 @@ int lwip_hook_ip4_input(struct pbuf *pbuf, struct netif *input_netif)
void initFirewall(const String ip)
{
firewall = new fw::Firewall();
firewallApi = new fw::API(firewall, username, password, ip);
firewallApi = new fw::API(firewall, cert, key, username, password, ip);
}
void handle_wifi_events(WiFiEvent_t event, WiFiEventInfo_t info)