IoT - Kubus / Mbed 2 deprecated Kubus

Dependencies:   mbed nRF24L01P

Revision:
50:e83e38fece23
Parent:
39:381993764b40
Child:
51:090149c4aa28
diff -r 79d7eddb1f1d -r e83e38fece23 master.cpp
--- a/master.cpp	Tue Jan 17 14:38:46 2017 +0100
+++ b/master.cpp	Tue Jan 17 14:41:20 2017 +0100
@@ -8,7 +8,7 @@
     Serial pc(USBTX, USBRX); // tx, rx
     Serial wifi(PA_9, PA_10);
     nRF24L01P radio(PB_15, PB_14, PB_13, PB_12, PB_1, PB_2);    // mosi, miso, sck, csn, ce, irq
-    
+
     const unsigned long long RX_ADDRESS = MASTER_ADDRESS;
     const unsigned long long TX_ADDRESS = BOARD1_ADDRESS;
 
@@ -16,7 +16,7 @@
 
     pc.baud(115200);
     wifi.baud(115200);
-    
+
     radio_init(&radio, RX_ADDRESS, TX_ADDRESS);
 
     // Display the (default) setup of the nRF24L01+ chip
@@ -35,7 +35,7 @@
     while (1) {
         if(radio.readable(NRF24L01P_PIPE_P1)){
             int rx_bytes = radio.read(NRF24L01P_PIPE_P1, rxData, sizeof(rxData));
-            std::string output = str_hex(rxData, rx_bytes); 
+            std::string output = str_hex(rxData, rx_bytes);
             wifi.printf("received: %s\r\n", output.c_str());
             pc.printf("received: %s\r\n", output.c_str());
         }