kopia lustrzana https://github.com/sh123/esp32_loraprs
Set implicit header mode for spreading factor of 6
rodzic
80c5d79e91
commit
b1a78bbf00
|
@ -17,7 +17,7 @@
|
|||
#endif
|
||||
|
||||
void initializeConfig(LoraPrs::Config &cfg) {
|
||||
|
||||
|
||||
// client/server mode switch
|
||||
cfg.IsClientMode = CFG_IS_CLIENT_MODE;
|
||||
|
||||
|
|
|
@ -124,6 +124,7 @@ void Service::setupLora(long loraFreq, long bw, int sf, int cr, int pwr, int syn
|
|||
delay(CfgConnRetryMs);
|
||||
}
|
||||
LoRa.setSyncWord(sync);
|
||||
if (sf == 6) LoRa.implicitHeaderMode();
|
||||
LoRa.setSpreadingFactor(sf);
|
||||
LoRa.setSignalBandwidth(bw);
|
||||
LoRa.setCodingRate4(cr);
|
||||
|
|
Ładowanie…
Reference in New Issue