2021-02-18 18:59:18 +02:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <WiFi.h>
|
|
|
|
#include <WebServer.h>
|
|
|
|
#include <ESPmDNS.h>
|
2021-03-01 15:47:34 +02:00
|
|
|
#include <Update.h>
|
2021-06-11 01:52:49 +03:00
|
|
|
#include <BG_RF95.h>
|
2021-02-18 18:59:18 +02:00
|
|
|
|
2021-02-18 20:34:42 +02:00
|
|
|
#ifndef TASK_WEBSERVER
|
|
|
|
#define TASK_WEBSERVER
|
|
|
|
|
2021-06-11 01:52:49 +03:00
|
|
|
extern BG_RF95 rf95;
|
2021-02-18 20:34:42 +02:00
|
|
|
#ifdef KISS_PROTOCOL
|
|
|
|
extern WiFiServer tncServer;
|
|
|
|
#endif
|
2021-09-06 20:15:00 +03:00
|
|
|
extern WiFiServer gpsServer;
|
2021-02-18 18:59:18 +02:00
|
|
|
typedef struct {
|
|
|
|
String callsign;
|
|
|
|
} tWebServerCfg;
|
|
|
|
|
2021-04-26 14:41:12 +03:00
|
|
|
typedef struct {
|
2021-04-26 15:45:29 +03:00
|
|
|
struct tm rxTime;
|
2021-04-26 14:41:12 +03:00
|
|
|
String *packet;
|
|
|
|
int RSSI;
|
|
|
|
int SNR;
|
|
|
|
} tReceivedPacketData;
|
|
|
|
|
|
|
|
|
|
|
|
extern QueueHandle_t webListReceivedQueue;
|
|
|
|
|
2021-02-18 20:34:42 +02:00
|
|
|
[[noreturn]] void taskWebServer(void *parameter);
|
|
|
|
#endif
|