Library for handling subset of coap functionality by radio transmitter.

Dependencies:   nRF24L01P cantcoap

Dependents:   server2

Revision:
1:1d936c763440
Parent:
0:6a6f97ca5572
Child:
2:c3ca8b8526e0
--- a/radioWrapper.h	Fri Jan 18 14:12:24 2019 +0000
+++ b/radioWrapper.h	Sun Jan 20 13:48:02 2019 +0000
@@ -8,17 +8,11 @@
 
 #define POWER           NRF24L01P_TX_PWR_ZERO_DB
 
-#define CHANNEL         4 // 0 - 30
-#define RX_ADDRESS      ((unsigned long long) 0xABCDEF08)
-#define TX_ADDRESS      ((unsigned long long) 0xABCDEF08)
-
-#define TRANSFER_SIZE 32
-
 //***************************************************************************//
 
 class RadioWrapper {
 private:
-    nRF24L01P radio(PB_15, PB_14, PB_13, PB_12, PB_1, PB_2);    // mosi, miso, sck, csn, ce, irq
+    nRF24L01P radio;   // mosi, miso, sck, csn, ce, irq
 
 public:
     RadioWrapper(int channel, unsigned long long rx_address,  unsigned long long tx_address);
@@ -38,4 +32,4 @@
     @return number of writeen bytes, -1 if error.
     */
     int write(uint8_t* buffer, int len);
-}
\ No newline at end of file
+};
\ No newline at end of file