
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:
- 18:d210f580ff04
- Parent:
- 15:67fbed00edf2
- Child:
- 19:c190dd954ff1
- Child:
- 21:b2fc4f8b1d4e
--- a/ble_msg_handler.cpp Thu Oct 13 14:44:46 2016 +0000 +++ b/ble_msg_handler.cpp Mon Oct 17 14:17:47 2016 +0000 @@ -91,6 +91,18 @@ ble_send_data(tmp_buf, rx_data[3]); //jinuu break; + case BLE_START_OF_FILE: + toggle_led(); + memcpy(tmp_buf, &rx_data[4], rx_data[3]); + ble_send_data(tmp_buf, rx_data[3]); //jinuu + break; + + case BLE_END_OF_FILE: + toggle_led(); + memcpy(tmp_buf, &rx_data[4], rx_data[3]); + ble_send_data(tmp_buf, rx_data[3]); //jinuu + break; + default : break;