High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: services/UARTService.h
- Revision:
- 670:5e4aecd9af5b
- Parent:
- 669:7179b4a5aa7d
- Child:
- 671:33ec93d25695
--- a/services/UARTService.h Fri Jun 19 15:53:01 2015 +0100 +++ b/services/UARTService.h Fri Jun 19 15:53:01 2015 +0100 @@ -167,8 +167,8 @@ * function from the global onDataWritten() callback handler; or if that's * not used, this method can be used as a callback directly. */ - void onDataWritten(const GattCharacteristicWriteCBParams *params) { - if (params->charHandle == getTXCharacteristicHandle()) { + void onDataWritten(const GattWriteCallbackParams *params) { + if (params->handle == getTXCharacteristicHandle()) { uint16_t bytesRead = params->len; if (bytesRead <= BLE_UART_SERVICE_MAX_DATA_LEN) { numBytesReceived = bytesRead;