mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-13 00:20:47 +00:00
22 lines
395 B
C
22 lines
395 B
C
#pragma once
|
|
|
|
#include "concurrency/Periodic.h"
|
|
#include "configuration.h"
|
|
#include <Arduino.h>
|
|
#include <functional>
|
|
|
|
#if HAS_WIFI && !defined(ARCH_PORTDUINO)
|
|
#include <WiFi.h>
|
|
#endif
|
|
|
|
extern bool needReconnect;
|
|
extern concurrency::Periodic *wifiReconnect;
|
|
|
|
/// @return true if wifi is now in use
|
|
bool initWifi();
|
|
|
|
void deinitWifi();
|
|
|
|
bool isWifiAvailable();
|
|
|
|
uint8_t getWifiDisconnectReason(); |