39 wiersze
667 B
C
39 wiersze
667 B
C
#include <Arduino.h>
|
|
#include <WiFi.h>
|
|
#include <WebServer.h>
|
|
#include <ESPmDNS.h>
|
|
#include <Update.h>
|
|
#include <BG_RF95.h>
|
|
#include <esp_wifi.h>
|
|
|
|
#ifndef TASK_WEBSERVER
|
|
#define TASK_WEBSERVER
|
|
|
|
extern BG_RF95 rf95;
|
|
#ifdef KISS_PROTOCOL
|
|
extern WiFiServer tncServer;
|
|
#endif
|
|
extern WiFiServer gpsServer;
|
|
typedef struct {
|
|
String callsign;
|
|
} tWebServerCfg;
|
|
|
|
typedef struct {
|
|
struct tm rxTime;
|
|
String *packet;
|
|
int RSSI;
|
|
int SNR;
|
|
} tReceivedPacketData;
|
|
|
|
extern QueueHandle_t webListReceivedQueue;
|
|
|
|
// structure for AP Array
|
|
struct AccessPoint {
|
|
char ssid[33];
|
|
char pw[64];
|
|
//uint8_t prio;
|
|
};
|
|
|
|
[[noreturn]] void taskWebServer(void *parameter);
|
|
#endif
|