
BLE Nano Code.Tested with Integrated mDot code
Dependencies: BLE_API mbed nRF51822
Fork of eco_Labs_ble_Client by
Diff: ble_msg_handler.cpp
- Revision:
- 28:5acf1e0542f3
- Parent:
- 27:321218cb60c3
- Child:
- 29:6ebf4b4f297f
--- a/ble_msg_handler.cpp Thu Oct 27 12:07:55 2016 +0000 +++ b/ble_msg_handler.cpp Wed Nov 09 11:09:30 2016 +0000 @@ -53,9 +53,11 @@ uint8_t send_buf[100]; send_buf[0] = BLE_SOF_CMD; - send_buf[1] = BLE_REC_DATA_CMD; - send_buf[2] = len+4; - memcpy(&send_buf[3], rx_data, len); +// send_buf[1] = BLE_REC_DATA_CMD; + send_buf[1] = rx_data[0]; + send_buf[2] = len+4; + + memcpy(&send_buf[3], rx_data, (len-1)); send_buf[len + 3] = BLE_EOT_CMD; spi_slave_tx_data(send_buf, (len + 4)); }