Vincenzo Canfora
/
SX1272PingPong
per emilio
Fork of SX1272PingPong by
Diff: main.cpp
- Revision:
- 14:c918b4f661ca
- Parent:
- 13:edb9b443c1dd
--- a/main.cpp Wed Feb 17 09:17:46 2016 +0000 +++ b/main.cpp Tue Mar 14 13:14:50 2017 +0000 @@ -11,7 +11,7 @@ #define USE_MODEM_FSK !USE_MODEM_LORA #define RF_FREQUENCY 868000000 // Hz -#define TX_OUTPUT_POWER 14 // 14 dBm +#define TX_OUTPUT_POWER 20 // 14 dBm #if USE_MODEM_LORA == 1 @@ -55,6 +55,10 @@ DigitalOut led(LED1); #endif +Serial pc(USBTX, USBRX); + + + /* * Global variables declarations */ @@ -91,7 +95,6 @@ uint16_t BufferSize = BUFFER_SIZE; uint8_t Buffer[BUFFER_SIZE]; - int16_t RssiValue = 0.0; int8_t SnrValue = 0.0; @@ -320,6 +323,7 @@ RssiValue = rssi; SnrValue = snr; State = RX; + pc.printf("Rssi: %d dbm\n\r",RssiValue); debug_if( DEBUG_MESSAGE, "> OnRxDone\n\r" ); }