1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-07-31 10:24:22 +03:00

Change method CAD(void) to channelActivityDetection(void).

This commit is contained in:
Minoru Tomobe
2020-02-15 12:03:27 +09:00
parent 98b1259032
commit dcbc9a9995
5 changed files with 7 additions and 7 deletions

View File

@ -21,7 +21,7 @@ void setup() {
// register the receive callback
LoRa.onReceive(onReceive);
// put the radio into CAD mode
LoRa.CAD();
LoRa.channelActivityDetection();
}
void loop() {
@ -36,7 +36,7 @@ void onCadDone(boolean signalDetected) {
LoRa.receive();
} else {
// try next activity dectection
LoRa.CAD();
LoRa.channelActivityDetection();
}
}
@ -54,5 +54,5 @@ void onReceive(int packetSize) {
Serial.println(LoRa.packetRssi());
// put the radio into CAD mode
LoRa.CAD();
LoRa.channelActivityDetection();
}