Add T-Beam WiFi button toggle
This commit is contained in:
1 parent
933697f65c
commit
7afa6b11a8
15 files changed
+263
-45
No files matched your search
@@ -7,6 +7,15 @@ void SerialWifiInterface::begin(int port) {
|
||||
server.begin(port);
|
||||
}
|
||||
|
||||
void SerialWifiInterface::end() {
|
||||
disable();
|
||||
if (client) client.stop();
|
||||
server.end();
|
||||
deviceConnected = false;
|
||||
resetReceivedFrameHeader();
|
||||
clearBuffers();
|
||||
}
|
||||
|
||||
// ---------- public methods
|
||||
void SerialWifiInterface::enable() {
|
||||
if (_isEnabled) return;
|
||||
|
||||
Reference in new issue
Block a user