MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / dispatchAutoConnect

Function dispatchAutoConnect

Tactility/Source/service/wifi/WifiEsp.cpp:439–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static void dispatchAutoConnect(std::shared_ptr<Wifi> wifi) {
440 LOGGER.info("dispatchAutoConnect()");
441
442 settings::WifiApSettings settings;
443 if (find_auto_connect_ap(wifi, settings)) {
444 LOGGER.info("Auto-connecting to {}", settings.ssid);
445 connect(settings, false);
446 // TODO: We currently have to manually reset it because connect() sets it.
447 // connect() assumes it's only being called by the user and not internally, so it disables auto-connect
448 wifi->pause_auto_connect = false;
449 }
450}
451
452static void eventHandler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data) {
453 auto wifi = wifi_singleton;

Callers 1

eventHandlerFunction · 0.85

Calls 3

find_auto_connect_apFunction · 0.85
infoMethod · 0.80
connectFunction · 0.70

Tested by

no test coverage detected