IoT - Kubus / Mbed 2 deprecated Kubus

Dependencies:   mbed nRF24L01P

Revision:
4:aa25f65395e3
Parent:
2:6541a391bdbd
Child:
5:fbd5b1e953e6
--- a/pir1_sensor.cpp	Thu Jan 05 10:39:36 2017 +0000
+++ b/pir1_sensor.cpp	Thu Jan 05 10:47:42 2017 +0000
@@ -62,7 +62,7 @@
             pc.printf("string data '%s', len %d\r\n", serialized_data.c_str(), serialized_data.size());
             
             char message[TRANSFER_SIZE];
-            memcpy(message, serialized_data.c_str(), serialized_data.length());
+            memcpy(message, serialized_data.c_str(), 2);
             int tx_bytes = radio.write(NRF24L01P_PIPE_P0, message, TRANSFER_SIZE);
             
             if (tx_bytes > 0) {