 |
Firmware for an ad-hoc mesh network of Internet-of-Things devices based on LoRa (Long Range radio) that can be deployed quickly and cheaply.
|
Go to the documentation of this file.
19 #ifdef CDPCFG_WIFI_NONE
25 #include <ArduinoOTA.h>
26 #include <DNSServer.h>
27 #include <ESPAsyncWebServer.h>
31 #include <WiFiClientSecure.h>
32 #include <esp_int_wdt.h>
33 #include <esp_task_wdt.h>
35 #include "../DuckError.h"
44 #define AP_SCAN_INTERVAL_MS 10
60 #ifdef CDPCFG_WIFI_NONE
61 void setupWebServer(
bool createCaptivePortal =
false, String html =
"") {}
62 void setupWifiAp(
const char* accessPoint =
"🆘 DUCK EMERGENCY PORTAL") {}
89 void setupWifiAp(
const char* accessPoint =
"🆘 DUCK EMERGENCY PORTAL");
168 static const byte DNS_PORT;
169 static const char* DNS;
170 static const char* AP;
173 String password =
"";
String getPassword()
Get the WiFi password ssid.
void setDeviceId(String deviceId)
Set the Duck's device id.
void setupWebServer(bool createCaptivePortal=false, String html="")
Set up the WebServer.
void setupInternet(String ssid, String password)
Set up internet access.
Internal LoRa chip abstraction.
Definition: DuckLora.h:58
static DNSServer dnsServer
Definition: DuckNet.h:156
String getSsid()
Get the WiFi network ssid.
void setSsid(String val)
Set the WiFi network ssid.
void setupWifiAp(const char *accessPoint="🆘 DUCK EMERGENCY PORTAL")
Set up the WiFi access point.
bool ssidAvailable(String val="")
Checks if the given ssid is available.
This file is internal to CDP and provides the library access to onboard LoRa module functions as well...
This file is internal to CDP and provides some common utility methods.
bool isWifiConnected()
Provide Wifi connection status.
Definition: DuckNet.h:154
Internal network abstraction.
Definition: DuckNet.h:51
int setupDns()
Set up DNS.
static DuckNet * getInstance()
Get a singletom instance of the DuckNet class.
void setPassword(String val)
Set the WiFi password.
This file is internal to CDP and provides ESP32 specific implementations.
CDP central compile-time configuration file.