aa

Dependents:   Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal

Fork of BLE_API by Bluetooth Low Energy

Revision:
722:eab9499e4250
Parent:
718:cb41f5a422a9
Child:
723:71507679c9b2
diff -r 8f92a1a943d6 -r eab9499e4250 ble/services/UARTService.h
--- a/ble/services/UARTService.h	Thu Jul 02 09:06:12 2015 +0100
+++ b/ble/services/UARTService.h	Thu Jul 02 09:06:12 2015 +0100
@@ -117,7 +117,7 @@
                 if ((sendBufferIndex == BLE_UART_SERVICE_MAX_DATA_LEN) ||
                     // (sendBuffer[sendBufferIndex - 1] == '\r')          ||
                     (sendBuffer[sendBufferIndex - 1] == '\n')) {
-                    ble.updateCharacteristicValue(getRXCharacteristicHandle(), static_cast<const uint8_t *>(sendBuffer), sendBufferIndex);
+                    ble.gattServer().write(getRXCharacteristicHandle(), static_cast<const uint8_t *>(sendBuffer), sendBufferIndex);
                     sendBufferIndex = 0;
                 }
             }