diff --git a/FollowMe_old.cfg b/FollowMe_old.cfg index 8d5b252..204d91e 100644 --- a/FollowMe_old.cfg +++ b/FollowMe_old.cfg @@ -24,6 +24,7 @@ #define WITH_RFM95 // RF chip selection: both HELTEC and TTGO use sx1276 which is same as RFM95 +#define WITH_LORAWAN // #define WITH_SLEEP // with software sleep mode controlled by the long-press on the button // #define WITH_AXP // with AXP192 power controller (T-BEAM V1.0) @@ -52,7 +53,7 @@ // #define WITH_BMX055 // BMX055 magnetic and IMU sensor -#define WITH_FANET +// #define WITH_FANET #define WITH_PFLAA // PFLAU and PFLAA for compatibility with XCsoar and LK8000 // #define WITH_POGNT // #define WITH_GDL90 @@ -69,13 +70,19 @@ #define WITH_SD // use the SD card in SPI mode and FAT file system #define WITH_SPIFFS // use SPIFFS file system in Flash -#define WITH_SPIFFS_FAT +#define WITH_SPIFFS_FAT // FAT system in internal flash #define WITH_LOG // log own positions and other received to SPIFFS #define WITH_SDLOG // log own position and other data to uSD card -// #define WITH_STRATUX -#define WITH_BT_SPP // Bluetooth serial port for smartphone/tablet link -// #define WITH_WIFI // attempt to connect to the wifi router for uploading the log files +// #define WITH_BT_SPP // Bluetooth serial port for smartphone/tablet link + +// #define WITH_STRATUX // connect to Stratux as a client to send GPS and Pressure data +#define WITH_AP // WiFi AcessPoint and TCP decoder port +// #define WITH_APRS // attempt to connect to the wifi router and then APRS + +#if defined(WITH_STRATUX) || defined(WITH_APRS) || defined(WITH_AP) +#define WITH_WIFI +#endif // #define WITH_ENCRYPT // Encrypt (optionally) the position diff --git a/main/ap.cpp b/main/ap.cpp index e4c054b..4fd0b44 100644 --- a/main/ap.cpp +++ b/main/ap.cpp @@ -36,56 +36,127 @@ static void SelectList(httpd_req_t *Req, const char *Name, const char **List, in } httpd_resp_sendstr_chunk(Req, "\n"); } +static void ParmForm_Info(httpd_req_t *Req) // produce HTML form for aircraft parameters +{ + httpd_resp_sendstr_chunk(Req, "
\n"); } + static void ParmForm_Acft(httpd_req_t *Req) // produce HTML form for aircraft parameters { char Line[16]; httpd_resp_sendstr_chunk(Req, "