kopia lustrzana https://github.com/sh123/esp32_loraprs
Use correct LoRa parameter types, which match to underlying library
rodzic
ca0fd531e0
commit
470959e8d3
|
@ -10,11 +10,11 @@ struct Config
|
|||
bool IsClientMode; // true - client mode, false - server mode
|
||||
|
||||
long LoraFreq; // lora frequency, e.g. 433.775e6
|
||||
int LoraBw; // lora bandwidth, e.g. 125e3
|
||||
byte LoraSf; // lora spreading factor, e.g. 12
|
||||
byte LoraCodingRate; // lora coding rate, e.g. 7
|
||||
byte LoraSync; // lora sync word/packet id, 0x3f
|
||||
byte LoraPower; // lora power level in dbm, 20
|
||||
long LoraBw; // lora bandwidth, e.g. 125e3
|
||||
int LoraSf; // lora spreading factor, e.g. 12
|
||||
int LoraCodingRate; // lora coding rate, e.g. 7
|
||||
int LoraSync; // lora sync word/packet id, 0x3f
|
||||
int LoraPower; // lora power level in dbm, 20
|
||||
bool LoraEnableCrc; // lora crc check enabled
|
||||
|
||||
int AprsPort; // aprs server port, 14580
|
||||
|
|
|
@ -116,7 +116,7 @@ bool Service::reconnectAprsis()
|
|||
return true;
|
||||
}
|
||||
|
||||
void Service::setupLora(int loraFreq, int bw, byte sf, byte cr, byte pwr, byte sync, bool enableCrc)
|
||||
void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int sync, bool enableCrc)
|
||||
{
|
||||
Serial.print("LoRa init...");
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
|
||||
private:
|
||||
void setupWifi(const String &wifiName, const String &wifiKey);
|
||||
void setupLora(int loraFreq, int bw, byte sf, byte cr, byte pwr, byte sync, bool enableCrc);
|
||||
void setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int sync, bool enableCrc);
|
||||
void setupBt(const String &btName);
|
||||
|
||||
void reconnectWifi();
|
||||
|
|
Ładowanie…
Reference in New Issue