mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-21 09:17:29 +00:00
31 lines
543 B
C
31 lines
543 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
|
|
|
|
#if HAS_ETHERNET && defined(ARCH_ESP32)
|
|
#include <ETH.h>
|
|
#endif // HAS_ETHERNET
|
|
|
|
extern bool needReconnect;
|
|
extern concurrency::Periodic *wifiReconnect;
|
|
|
|
/// @return true if wifi is now in use
|
|
bool initWifi();
|
|
|
|
void deinitWifi();
|
|
|
|
bool isWifiAvailable();
|
|
|
|
uint8_t getWifiDisconnectReason();
|
|
|
|
#ifdef USE_WS5500
|
|
// Startup Ethernet
|
|
bool initEthernet();
|
|
#endif |