Skip to content

Commit deeab59

Browse files
committed
setWiFi
1 parent 54ef34c commit deeab59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/SnapClient.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,12 @@ class SnapClient {
176176
/// Call from Arduino Loop - to receive and process the audio data
177177
bool doLoop() { return p_snapprocessor->doLoop(); }
178178

179+
/// ESP32: WiFiClient: prevent/activate automatic login to Wifi
180+
void setWiFi(bool flag){ is_wifi = flag;}
181+
182+
/// check if we use the WiFiClient
183+
bool isWiFi() {return is_wifi;}
184+
179185
protected:
180186
const char *TAG = "SnapClient";
181187
SnapTime &snap_time = SnapTime::instance();

0 commit comments

Comments
 (0)