adaptation for book and plug demo
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