p2p with rssi value
Dependents: Lora_SX1272_serial_apr29-rssi
Diff: SX1272.cpp
- Revision:
- 6:d7c7e731da3a
- Parent:
- 4:f77a79f4239a
- Child:
- 7:e99757b7c421
diff -r f77a79f4239a -r d7c7e731da3a SX1272.cpp --- a/SX1272.cpp Tue Sep 03 21:15:40 2019 +0000 +++ b/SX1272.cpp Mon Feb 01 15:19:40 2021 +0000 @@ -133,7 +133,7 @@ _bandwidth = BW_125; _codingRate = CR_5; _spreadingFactor = SF_7; - _channel = CH_12_900; + _channel = CH_07_900; _header = HEADER_ON; _CRC = CRC_OFF; _modem = FSK; @@ -194,7 +194,7 @@ } // Sets a Frequency in HF band - setChannel(CH_17_868); + setChannel(CH_07_900); // Launch Rx chain calibration for HF band writeRegister( REG_IMAGE_CAL, ( readRegister( REG_IMAGE_CAL ) & RF_IMAGECAL_IMAGECAL_MASK ) | RF_IMAGECAL_IMAGECAL_START ); @@ -529,6 +529,8 @@ */ void SX1272::writeRegister(byte address, byte data) { + // printf("Samira - writeRegister ( ) - ENTER..\n"); + //digitalWrite(SX1272_SS,LOW); ss=0; bitSet(address, 7); // Bit 7 set to read from registers @@ -3848,6 +3850,7 @@ if( length16 > MAX_PAYLOAD ) { + printf("XXXXXXXXXXXXXXXXXXXXX MAX_PAYLOAD XXXXXXXXXXXXXXXX\n"); _payloadlength = MAX_PAYLOAD; } else