Skip to content

Commit 9ee44d0

Browse files
committed
Add the SyncWord in the Cline and Server of LoRa
1 parent 4e88c12 commit 9ee44d0

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

libraries/Dragino/examples/LoRa/LoRa_Simple_Client_Arduino/LoRa_Simple_Client_Arduino.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ void setup()
4848

4949
// Setup Coding Rate:5(4/5),6(4/6),7(4/7),8(4/8)
5050
rf95.setCodingRate4(5);
51-
51+
52+
rf95.setSyncWord(0x34);
5253
/*
5354
//Different Combination for distance and speed examples:
5455
Example 1: Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on. Default medium range

libraries/Dragino/examples/LoRa/LoRa_Simple_Client_Yun/LoRa_Simple_Client_Yun.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void setup()
4242
// Setup Power,dBm
4343
rf95.setTxPower(13);
4444
// Defaults BW Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
45+
rf95.setSyncWord(0x34);
4546
}
4647

4748
void loop()

libraries/Dragino/examples/LoRa/LoRa_Simple_Server_Arduino/LoRa_Simple_Server_Arduino.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ void setup()
3939
// Setup Power,dBm
4040
rf95.setTxPower(13);
4141
// Defaults BW Bw = 125 kHz, Cr = 4/5, Sf = 128chips/symbol, CRC on
42+
rf95.setSyncWord(0x34);
4243
Serial.print("Listening on frequency: ");
4344
Serial.println(frequency);
4445
}

libraries/Dragino/examples/LoRa/LoRa_Simple_Server_Yun/LoRa_Simple_Server_Yun.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ void setup()
5555

5656
// Setup Coding Rate:5(4/5),6(4/6),7(4/7),8(4/8)
5757
rf95.setCodingRate4(5);
58+
59+
rf95.setSyncWord(0x34);
5860

5961
Console.print("Listening on frequency: ");
6062
Console.println(frequency);

0 commit comments

Comments
 (0)