change lora settings to increase range
This commit is contained in:
parent
2bc611e8fc
commit
9571d988fb
|
@ -174,7 +174,7 @@ void setup()
|
||||||
// define multi-channel sending
|
// define multi-channel sending
|
||||||
lora.setChannel(MULTI);
|
lora.setChannel(MULTI);
|
||||||
// set datarate
|
// set datarate
|
||||||
lora.setDatarate(SF7BW125);
|
lora.setDatarate(SF12BW125); // SF7BW125
|
||||||
if(!lora.begin())
|
if(!lora.begin())
|
||||||
{
|
{
|
||||||
Serial.println("Failed");
|
Serial.println("Failed");
|
||||||
|
@ -187,7 +187,7 @@ void setup()
|
||||||
// For safe operation in 20dBm: your antenna must be 3:1 VWSR or better
|
// For safe operation in 20dBm: your antenna must be 3:1 VWSR or better
|
||||||
// and respect the 1% duty cycle.
|
// and respect the 1% duty cycle.
|
||||||
|
|
||||||
lora.setPower(1);
|
lora.setPower(15); // 1
|
||||||
|
|
||||||
// start 1 second timer
|
// start 1 second timer
|
||||||
TCCR1A = 0;
|
TCCR1A = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user