File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ void onCadDone(boolean signalDetected) {
261
261
### Channel Activity detection mode
262
262
Puts the radio in channel activity detection mode.
263
263
``` arduino
264
- LoRa.CAD ();
264
+ LoRa.channelActivityDetection ();
265
265
```
266
266
## Other radio modes
267
267
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ void setup() {
21
21
// register the receive callback
22
22
LoRa.onReceive (onReceive);
23
23
// put the radio into CAD mode
24
- LoRa.CAD ();
24
+ LoRa.channelActivityDetection ();
25
25
}
26
26
27
27
void loop () {
@@ -36,7 +36,7 @@ void onCadDone(boolean signalDetected) {
36
36
LoRa.receive ();
37
37
} else {
38
38
// try next activity dectection
39
- LoRa.CAD ();
39
+ LoRa.channelActivityDetection ();
40
40
}
41
41
}
42
42
@@ -54,5 +54,5 @@ void onReceive(int packetSize) {
54
54
Serial.println (LoRa.packetRssi ());
55
55
56
56
// put the radio into CAD mode
57
- LoRa.CAD ();
57
+ LoRa.channelActivityDetection ();
58
58
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ flush KEYWORD2
33
33
onReceive KEYWORD2
34
34
onTxDone KEYWORD2
35
35
onCadDone KEYWORD2
36
- CAD KEYWORD2
36
+ channelActivityDetection KEYWORD2
37
37
receive KEYWORD2
38
38
idle KEYWORD2
39
39
sleep KEYWORD2
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ void LoRaClass::receive(int size)
423
423
writeRegister (REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_RX_CONTINUOUS);
424
424
}
425
425
426
- void LoRaClass::CAD (void )
426
+ void LoRaClass::channelActivityDetection (void )
427
427
{
428
428
writeRegister (REG_DIO_MAPPING_1, 0x80 );// DIO0 => CADDONE
429
429
writeRegister (REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_CAD);
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class LoRaClass : public Stream {
61
61
void onTxDone (void (*callback)());
62
62
63
63
void receive (int size = 0 );
64
- void CAD (void );
64
+ void channelActivityDetection (void );
65
65
#endif
66
66
void idle ();
67
67
void sleep ();
You can’t perform that action at this time.
0 commit comments