LoRa node acquiring analog input and sending to LoRa Server - Working ok
Dependents: DISCO-L072CZ-LRWAN1_LoRa_node EIoT_LoRa_node_1 EIoT_LoRa_node_2 EIoT_LoRa_node_3
Fork of SX1276GenericLib by
Diff: sx1276/sx1276.cpp
- Revision:
- 34:07e89f23c734
- Parent:
- 33:5db0d1e716b1
- Child:
- 38:d9189d958db8
--- a/sx1276/sx1276.cpp Mon May 01 18:56:35 2017 +0200 +++ b/sx1276/sx1276.cpp Sat May 06 11:52:23 2017 +0200 @@ -12,6 +12,13 @@ Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin */ + +/* + * additional development to make it more generic across multiple os versions + * (c) 2017 Helmut Tschemernjak + * 30826 Garbsen (Hannover) Germany + */ + #include "sx1276.h" const FskBandwidth_t SX1276::FskBandwidths[] = @@ -41,15 +48,7 @@ }; -SX1276::SX1276( RadioEvents_t *events, - PinName mosi, PinName miso, PinName sclk, PinName nss, PinName reset, - PinName dio0, PinName dio1, PinName dio2, PinName dio3, PinName dio4, PinName dio5 ) - : Radio( events ), - spi( mosi, miso, sclk ), - nss( nss ), - reset( reset ), - dio0( dio0 ), dio1( dio1 ), dio2( dio2 ), dio3( dio3 ), dio4( dio4 ), dio5( dio5 ), - isRadioActive( false ) +SX1276::SX1276( RadioEvents_t *events) : Radio( events ), isRadioActive( false ) { wait_ms( 10 ); this->rxtxBuffer = new uint8_t[RX_BUFFER_SIZE];