Vincenzo Canfora
/
SX1272PingPong
per emilio
Fork of SX1272PingPong by
Revision 14:c918b4f661ca, committed 2017-03-14
- Comitter:
- cenzino91
- Date:
- Tue Mar 14 13:14:50 2017 +0000
- Parent:
- 13:edb9b443c1dd
- Commit message:
- per emilio
Changed in this revision
diff -r edb9b443c1dd -r c918b4f661ca SX1272Lib.lib --- a/SX1272Lib.lib Wed Feb 17 09:17:46 2016 +0000 +++ b/SX1272Lib.lib Tue Mar 14 13:14:50 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Semtech/code/SX1272Lib/#cd1093b6676f +http://mbed.org/teams/Semtech/code/SX1272Lib/#69d5976b504d
diff -r edb9b443c1dd -r c918b4f661ca main.cpp --- 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" ); }
diff -r edb9b443c1dd -r c918b4f661ca mbed.bld --- a/mbed.bld Wed Feb 17 09:17:46 2016 +0000 +++ b/mbed.bld Tue Mar 14 13:14:50 2017 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/ef9c61f8c49f \ No newline at end of file