mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Add additional command structure for 80-bit up/down
This commit is contained in:
parent
cf7a9b1fc2
commit
f29cd9c089
12 changed files with 79 additions and 61 deletions
|
|
@ -3,6 +3,8 @@
|
|||
#ifndef Network_h
|
||||
#define Network_h
|
||||
|
||||
//enum class conn_types_t : byte;
|
||||
|
||||
#define CONNECT_TIMEOUT 20000
|
||||
class Network {
|
||||
protected:
|
||||
|
|
@ -18,8 +20,8 @@ class Network {
|
|||
bool softAPOpened = false;
|
||||
bool openingSoftAP = false;
|
||||
bool needsBroadcast = true;
|
||||
conn_types connType = conn_types::unset;
|
||||
conn_types connTarget = conn_types::unset;
|
||||
conn_types_t connType = conn_types_t::unset;
|
||||
conn_types_t connTarget = conn_types_t::unset;
|
||||
bool connected();
|
||||
bool connecting();
|
||||
String ssid;
|
||||
|
|
@ -34,7 +36,7 @@ class Network {
|
|||
bool connect();
|
||||
bool connectWiFi();
|
||||
bool connectWired();
|
||||
void setConnected(conn_types connType);
|
||||
void setConnected(conn_types_t connType);
|
||||
bool getStrongestAP(const char *ssid, uint8_t *bssid, int32_t *channel);
|
||||
bool changeAP(const uint8_t *bssid, const int32_t channel);
|
||||
//int getStrengthByMac(const char *mac);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue