Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: ble/services/UARTService.h
- Revision:
- 1209:a593e0ecff7d
- Parent:
- 1053:ec4a5b9b254e
--- a/ble/services/UARTService.h Wed Sep 14 14:18:00 2016 +0100 +++ b/ble/services/UARTService.h Mon May 14 12:32:05 2018 +0000 @@ -164,13 +164,15 @@ return receiveBuffer[receiveBufferIndex++]; } -protected: +//protected: +public: //HD /** * This callback allows the UART service to receive updates to the * txCharacteristic. The application should forward the call to this * function from the global onDataWritten() callback handler; if that's * not used, this method can be used as a callback directly. */ +#if 0 //HD void onDataWritten(const GattWriteCallbackParams *params) { if (params->handle == getTXCharacteristicHandle()) { uint16_t bytesRead = params->len; @@ -181,8 +183,12 @@ } } } +#else + void onDataWritten(const GattWriteCallbackParams *params) ; +#endif -protected: +//protected: +public: //HD BLE &ble; uint8_t receiveBuffer[BLE_UART_SERVICE_MAX_DATA_LEN]; /**< The local buffer into which we receive