Initial commit

This commit is contained in:
Robert Strouse 2023-01-09 18:15:30 -08:00
commit ee367e7111
28 changed files with 53359 additions and 0 deletions

28
Network.h Normal file
View file

@ -0,0 +1,28 @@
#include <Arduino.h>
#ifndef Network_h
#define Network_h
class Network {
protected:
unsigned long lastEmit = 0;
public:
String ssid;
String mac;
int channel;
int strength;
int disconnected = 0;
int connectAttempts = 0;
long connectStart = 0;
long connectTime = 0;
bool openSoftAP();
bool connect();
void setConnected();
int getStrengthByMac(const char *mac);
int getStrengthBySSID(const char *ssid);
bool setup();
void loop();
void end();
void emitSockets();
uint32_t getChipId();
};
#endif