Skip to content

Commit

Permalink
Changes in LoRaMAC.cpp Class C
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Amar Gil committed Jul 21, 2022
1 parent 82d6886 commit 6ae6fa5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/arduino-rfm/LoRaMAC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
#include "Config.h"
#include "Arduino.h"

#define AU_915 // use the band youy need
#define SUBND_0 // same here!


/*
*****************************************************************************************
* FUNCTIONS
Expand Down Expand Up @@ -103,6 +107,10 @@ void LORA_Cycle(sBuffer *Data_Tx, sBuffer *Data_Rx, RFM_command_t *RFM_Command,
#elif defined(AS_923) || defined(AS_923_2)
LoRa_Settings->Channel_Rx = 0x00; // set Rx2 channel 923.2 (AS_923) or 921.4 (AS_923_2)
LoRa_Settings->Datarate_Rx = SF10BW125; //set RX2 datarate 10
/* Added the band AU_915 for use in class C */
#elif defined(AU_915)
LoRa_Settings->Channel_Rx = 0x08; // set Rx2 channel 923.3 MHZ
LoRa_Settings->Datarate_Rx = SF12BW500; //set RX2 datarate 12
#endif
LORA_Receive_Data(Data_Rx, Session_Data, OTAA_Data, Message_Rx, LoRa_Settings); //BUG DETECT SENDED PACKET ALWAYS (IT DOES UPDATE)
}
Expand Down

0 comments on commit 6ae6fa5

Please sign in to comment.