forked from sh123/esp32_loraprs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loraprs_config.h
64 lines (51 loc) · 2.75 KB
/
loraprs_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef LORAPRS_CONFIG_H
#define LORAPRS_CONFIG_H
#include <Arduino.h>
namespace LoraPrs {
struct Config
{
bool IsClientMode; // false - server mode, true - client mode (disables wifi and aprsis)
// lora protocol parameters
long LoraFreq; // lora frequency, e.g. 433.775e6
long LoraBw; // lora bandwidth, e.g. 125e3
int LoraSf; // lora spreading factor, e.g. 12
int LoraCodingRate; // lora coding rate, e.g. 7
int LoraPower; // lora power level in dbm, 20
int LoraSync; // lora sync word/packet id, 0x3f
bool LoraEnableCrc; // lora crc check enabled
// lora hardware pinouts and isr
byte LoraPinSs; // lora ss pin
byte LoraPinRst; // lora rst pin
byte LoraPinDio0; // lora dio0 pin
bool LoraUseIsr; // true to use interrupts, false for fallback polling, e.g. if Dio0 is not connected
// bluetooth
String BtName; // bluetooth device name for the client, set to empty string to disable bluetooth in server mode
// wifi
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
// aprsis connectivity
int AprsPort; // aprs server port, 14580
String AprsHost; // aprs server hostname, rotate.aprs2.net
String AprsLogin; // aprs callsign to use, e.g. N0CALL-1
String AprsPass; // aprs login password
String AprsFilter; // aprs filter, see http://www.aprs-is.net/javAPRSFilter.aspx, do not include filter directive, just space separated values
String AprsRawBeacon; // aprs string for server beacon, e.g. NOCALL-1>APZMDM,WIDE1-1:!0000.00N/00000.00E#LoRA 433.775MHz/BW125/SF12/CR7/0xf3
int AprsRawBeaconPeriodMinutes; // aprs beacon period
String AprsSymbolFirst;
String AprsSymbolSecond;
String AprsComments;
// frequency correction
bool EnableAutoFreqCorrection; // true - correct own frequency based on received packet frequency deviation
int AutoFreqCorrectionDeltaHz; // correct when difference is larger than this value
// aprs logic
bool EnableSignalReport; // true - append signal report on server side for the client to be sent to APRS-IS
bool EnablePersistentAprsConnection; // true - keep aprs-is connection active all the time
bool EnableRfToIs; // true - enable RF to APRS-IS submission
bool EnableIsToRf; // true - enable APRS-IS to RF submission
bool EnableRepeater; // true - digirepeat incoming packets based on WIDEn-n paths
bool EnableBeacon; // true - send AprsRawBeacon to RF and APRS-IS if EnableRfToIs is true
};
} // LoraPrs
#endif // LORAPRS_CONFIG_H