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