Fix args to begin() in SX12xx settings examples
This commit is contained in:
parent
40450e699c
commit
7c083e0796
2 changed files with 3 additions and 2 deletions
|
@ -74,7 +74,7 @@ void setup() {
|
||||||
// sync word: 0x34 (public network/LoRaWAN)
|
// sync word: 0x34 (public network/LoRaWAN)
|
||||||
// output power: 2 dBm
|
// output power: 2 dBm
|
||||||
// preamble length: 20 symbols
|
// preamble length: 20 symbols
|
||||||
state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 20);
|
state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 2, 20);
|
||||||
if (state == RADIOLIB_ERR_NONE) {
|
if (state == RADIOLIB_ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -65,9 +65,10 @@ void setup() {
|
||||||
// bandwidth: 1625.0 kHz
|
// bandwidth: 1625.0 kHz
|
||||||
// spreading factor: 7
|
// spreading factor: 7
|
||||||
// coding rate: 5
|
// coding rate: 5
|
||||||
|
// sync word: 0x12 (private network)
|
||||||
// output power: 2 dBm
|
// output power: 2 dBm
|
||||||
// preamble length: 20 symbols
|
// preamble length: 20 symbols
|
||||||
state = radio2.begin(2450.0, 1625.0, 7, 5, 2, 20);
|
state = radio2.begin(2450.0, 1625.0, 7, 5, 0x12, 2, 20);
|
||||||
if (state == RADIOLIB_ERR_NONE) {
|
if (state == RADIOLIB_ERR_NONE) {
|
||||||
Serial.println(F("success!"));
|
Serial.println(F("success!"));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue