![](/media/cache/profiles/profile_pic_for_github_less_than_1MB.jpg.50x50_q85.jpg)
This is example code that can get you started with building your own IR vision robot that communicates over LoRa
Dependencies: Adafruit-MotorShield Adafruit-PWM-Servo-Driver Adafruit_GFX BufferedSerial MAX17055_EZconfig NEO-6m-GPS SX1276GenericLib USBDeviceHT max32630fthr max77650_charger_sample
Fork of MAX326xxFTHR_LoRa_Example_test by
Diff: UARTService_custom.h
- 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;