2021-02-18 16:59:18 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <WiFi.h>
|
|
|
|
#include <WebServer.h>
|
|
|
|
#include <ESPmDNS.h>
|
2021-03-01 13:47:34 +00:00
|
|
|
#include <Update.h>
|
2021-06-10 22:52:49 +00:00
|
|
|
#include <BG_RF95.h>
|
2021-09-19 14:54:50 +00:00
|
|
|
#include <esp_wifi.h>
|
2021-02-18 16:59:18 +00:00
|
|
|
|
2021-02-18 18:34:42 +00:00
|
|
|
#ifndef TASK_WEBSERVER
|
|
|
|
#define TASK_WEBSERVER
|
|
|
|
|
2021-06-10 22:52:49 +00:00
|
|
|
extern BG_RF95 rf95;
|
2021-02-18 18:34:42 +00:00
|
|
|
#ifdef KISS_PROTOCOL
|
|
|
|
extern WiFiServer tncServer;
|
|
|
|
#endif
|
2021-06-11 01:35:59 +00:00
|
|
|
extern WiFiServer gpsServer;
|
2021-02-18 16:59:18 +00:00
|
|
|
typedef struct {
|
|
|
|
String callsign;
|
|
|
|
} tWebServerCfg;
|
|
|
|
|
2021-04-26 11:41:12 +00:00
|
|
|
typedef struct {
|
2021-04-26 12:45:29 +00:00
|
|
|
struct tm rxTime;
|
2021-04-26 11:41:12 +00:00
|
|
|
String *packet;
|
|
|
|
int RSSI;
|
|
|
|
int SNR;
|
|
|
|
} tReceivedPacketData;
|
|
|
|
|
|
|
|
extern QueueHandle_t webListReceivedQueue;
|
|
|
|
|
2022-12-15 08:16:37 +00:00
|
|
|
// structure for AP Array
|
|
|
|
struct AccessPoint {
|
|
|
|
char ssid[33];
|
|
|
|
char pw[64];
|
|
|
|
//uint8_t prio;
|
|
|
|
};
|
|
|
|
|
2021-02-18 18:34:42 +00:00
|
|
|
[[noreturn]] void taskWebServer(void *parameter);
|
2022-12-15 08:16:37 +00:00
|
|
|
#endif
|