change lora settings to increase range

This commit is contained in:
sessionm21 2020-05-12 22:22:42 +01:00
parent 2bc611e8fc
commit 9571d988fb

View File

@ -174,7 +174,7 @@ void setup()
// define multi-channel sending
lora.setChannel(MULTI);
// set datarate
lora.setDatarate(SF7BW125);
lora.setDatarate(SF12BW125); // SF7BW125
if(!lora.begin())
{
Serial.println("Failed");
@ -187,7 +187,7 @@ void setup()
// For safe operation in 20dBm: your antenna must be 3:1 VWSR or better
// and respect the 1% duty cycle.
lora.setPower(1);
lora.setPower(15); // 1
// start 1 second timer
TCCR1A = 0;