DL9SAU-TTGO-T-Beam-LoRa-APRS/include/taskWebServer.h

47 wiersze
1.9 KiB
C
Czysty Zwykły widok Historia

2021-02-18 16:59:18 +00:00
#include <Arduino.h>
#include "TTGO_T-Beam_LoRa_APRS_config.h"
#include <WiFi.h>
#include <WebServer.h>
#include <ESPmDNS.h>
#include <Preferences.h>
2021-03-01 13:47:34 +00:00
#include <Update.h>
2021-02-18 16:59:18 +00:00
2021-02-18 18:34:42 +00:00
#ifndef TASK_WEBSERVER
#define TASK_WEBSERVER
2021-02-18 16:59:18 +00:00
#define ENABLE_PREFERENCES
extern Preferences preferences;
2021-02-18 18:34:42 +00:00
#ifdef KISS_PROTOCOL
extern WiFiServer tncServer;
#endif
2021-02-18 16:59:18 +00:00
// MAX 15 chars for preferenece key!!!
static const char *const PREF_WIFI_SSID = "wifi_ssid";
static const char *const PREF_WIFI_PASSWORD = "wifi_password";
2021-02-18 16:59:18 +00:00
static const char *const PREF_APRS_CALLSIGN = "aprs_callsign";
static const char *const PREF_APRS_RELAY_PATH = "aprs_relay_path";
static const char *const PREF_APRS_RELAY_PATH_INIT = "aprs_relay_init";
static const char *const PREF_APRS_SYMBOL_TABLE = "aprs_s_table";
static const char *const PREF_APRS_SYMBOL = "aprs_symbol";
static const char *const PREF_APRS_COMMENT = "aprs_comment";
static const char *const PREF_APRS_COMMENT_INIT = "aprs_comm_init";
static const char *const PREF_APRS_SHOW_ALTITUDE = "aprs_alt";
static const char *const PREF_APRS_SHOW_ALTITUDE_INIT = "aprs_alt_init";
static const char *const PREF_APRS_SHOW_BATTERY = "aprs_batt";
static const char *const PREF_APRS_SHOW_BATTERY_INIT = "aprs_batt_init";
static const char *const PREF_APRS_LATITUDE_PRESET = "aprs_lat_p";
static const char *const PREF_APRS_LATITUDE_PRESET_INIT = "aprs_lat_p_init";
static const char *const PREF_APRS_LONGITUDE_PRESET = "aprs_lon_p";
static const char *const PREF_APRS_LONGITUDE_PRESET_INIT = "aprs_lon_p_init";
static const char *const PREF_APRS_FIXED_BEACON_PRESET = "aprs_fixed_beac";
static const char *const PREF_APRS_FIXED_BEACON_PRESET_INIT = "aprs_fix_b_init";
static const char *const PREF_APRS_FIXED_BEACON_INTERVAL_PRESET = "aprs_fb_interv";
static const char *const PREF_APRS_FIXED_BEACON_INTERVAL_PRESET_INIT = "aprs_fb_in_init";
typedef struct {
String callsign;
} tWebServerCfg;
2021-02-18 18:34:42 +00:00
[[noreturn]] void taskWebServer(void *parameter);
#endif