diff --git a/src/BleManager.js b/src/BleManager.js index 0100203c7..0d01571f8 100644 --- a/src/BleManager.js +++ b/src/BleManager.js @@ -566,7 +566,15 @@ export class BleManager { const nativeDevice = await this._callPromise( BleModule.discoverAllServicesAndCharacteristicsForDevice(deviceIdentifier, transactionId) ) - return new Device(nativeDevice, this) + const services = await this._callPromise(BleModule.servicesForDevice(deviceIdentifier)) + const serviceUUIDs = services.map(service => service.uuid) + + // $FlowFixMe + const device = { + ...nativeDevice, + serviceUUIDs + } + return new Device(device, this) } // Mark: Service and characteristic getters -------------------------------------------------------------------------- diff --git a/src/BleModule.js b/src/BleModule.js index 802a268eb..b783885ad 100644 --- a/src/BleModule.js +++ b/src/BleModule.js @@ -56,7 +56,7 @@ export interface NativeDevice { rawScanRecord: Base64; /** - * Map od service UUIDs with associated data. + * Map of service UUIDs with associated data. * @private */ serviceData: ?{ [uuid: UUID]: Base64 };