Add options to enable kiss over tcp/ip and AP mode

pull/25/head
sh123 2021-10-21 13:09:08 +03:00
rodzic eb12b0309f
commit 60a4df9c2d
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -43,6 +43,7 @@
#define CFG_APRS_FILTER "r/35.60/139.80/25"
#define CFG_APRS_RAW_BKN "NOCALL-10>APZMDM,WIDE1-1:!0000.00N/00000.00E#LoRA 433.775MHz/BW125/SF12/CR7/0x34"
#define CFG_WIFI_ENABLE_AP false
#define CFG_WIFI_SSID "<ssid>"
#define CFG_WIFI_KEY "<key>"
@ -55,6 +56,7 @@
#define CFG_IS_TO_RF false
#define CFG_BEACON false
#define CFG_KISS_EXTENSIONS false
#define CFG_KISS_TCP_IP false
#define CFG_PTT_ENABLE false
#define CFG_PTT_PIN 12

Wyświetl plik

@ -59,6 +59,7 @@ void initializeConfig(LoraPrs::Config &cfg) {
cfg.BtEnableBle = CFG_BT_USE_BLE;
// server mode wifi paramaters
cfg.WifiEnableAp = CFG_WIFI_ENABLE_AP;
cfg.WifiSsid = CFG_WIFI_SSID;
cfg.WifiKey = CFG_WIFI_KEY;
@ -73,7 +74,8 @@ void initializeConfig(LoraPrs::Config &cfg) {
cfg.EnableIsToRf = CFG_IS_TO_RF; // send data from aprsis to rf
cfg.EnableRepeater = CFG_DIGIREPEAT; // digirepeat incoming packets
cfg.EnableBeacon = CFG_BEACON; // enable periodic AprsRawBeacon beacon to rf and aprsis if rf to aprsis is enabled
cfg.EnableKissExtensions = CFG_KISS_EXTENSIONS; // radio control and signal reports
cfg.KissEnableExtensions = CFG_KISS_EXTENSIONS; // radio control and signal reports
cfg.KissEnableTcpIp = CFG_KISS_TCP_IP; // enable KISS ovr TCP/IP as a server
// external ptt control
cfg.PttEnable = CFG_PTT_ENABLE;

Wyświetl plik

@ -31,11 +31,13 @@ struct Config
bool BtEnableBle; // bluetooth device presents as BLE rather than serial bluetooth e.g. for iOS devices
// wifi
bool WifiEnableAp; // true to run as access point
String WifiSsid; // wifi access point name
String WifiKey; // wifi access point key
// kiss
bool EnableKissExtensions; // true - enable kiss extensions for radio control and signal reports
bool KissEnableTcpIp; // true to enable KISS over TCP/IP as a server
bool KissEnableExtensions; // true - enable kiss extensions for radio control and signal reports
// aprsis connectivity
int AprsPort; // aprs server port, 14580