There was an error while loading. Please reload this page.
1 parent 40d0854 commit a4d39caCopy full SHA for a4d39ca
1 file changed
src/main.cpp
@@ -227,6 +227,11 @@ void handleCaptive() {
227
// ---------------------------------------------------------------------------
228
void startWiFi() {
229
Serial.println("Initializing WiFi...");
230
+ udpDiscovery.stop();
231
+ udp11881.stop();
232
+ udp.stop();
233
+ tcpServer.stop();
234
+ server.stop();
235
236
if (config.wifi_mode == "STA") {
237
WiFi.mode(WIFI_STA);
@@ -489,6 +494,7 @@ void loop() {
489
494
if (!config.usb_bridge) Serial.println("TCP Session Started.");
490
495
}
491
496
if (activeMode == MODE_WIFI_TCP && !tcpClient.connected()) {
497
+ tcpClient.stop();
492
498
activeMode = MODE_NONE;
493
499
if (!config.usb_bridge) Serial.println("TCP Session Ended.");
500
0 commit comments