rename, move, change the lot
This commit is contained in:
parent
0a7f0faa39
commit
59b1a6b15f
13 changed files with 112 additions and 371 deletions
|
@ -6,9 +6,9 @@
|
|||
#include <ESP8266WiFi.h>
|
||||
#endif
|
||||
|
||||
#include "API.hpp"
|
||||
#include "Firewall.hpp"
|
||||
|
||||
firewall::API *firewall_api;
|
||||
fw::Firewall *firewall;
|
||||
|
||||
void setup_wifi()
|
||||
{
|
||||
|
@ -29,10 +29,10 @@ void setup_wifi()
|
|||
void setup()
|
||||
{
|
||||
setup_wifi();
|
||||
firewall_api = new firewall::API(api_username, api_password);
|
||||
firewall = new fw::Firewall(api_username, api_password, 8080);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
firewall_api->handle_client();
|
||||
firewall->handle_api_client();
|
||||
}
|
Reference in a new issue