LP Long Distance IR Vision Robot

Dependencies:   max77650_charger_sample BufferedSerial SX1276GenericLib Adafruit-MotorShield NEO-6m-GPS MAX17055_EZconfig Adafruit_GFX USBDeviceHT Adafruit-PWM-Servo-Driver

Revision:
30:66f9750cc44c
Parent:
29:f7a0e49b826b
--- a/UARTService_custom.h	Tue Jul 24 00:38:18 2018 +0000
+++ b/UARTService_custom.h	Tue Jul 24 16:58:04 2018 +0000
@@ -67,8 +67,8 @@
         GattCharacteristic *charTable[] = {&txCharacteristic, &rxCharacteristic};
         GattService         uartService(UARTServiceUUID, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
 
-        ble.addService(uartService);
-        ble.onDataWritten(this, &UARTService::onDataWritten);
+        ble.gattServer().addService(uartService);
+        ble.gattServer().onDataWritten(this, &UARTService::onDataWritten);
     }
 
     /**
@@ -106,7 +106,7 @@
         size_t         origLength = length;
         const uint8_t *buffer     = static_cast<const uint8_t *>(_buffer);
 
-        if (ble.getGapState().connected) {
+        if (ble.gap().getState().connected) {
             unsigned bufferIndex = 0;
             while (length) {
                 unsigned bytesRemainingInSendBuffer = BLE_UART_SERVICE_MAX_DATA_LEN - sendBufferIndex;