react-native-bluebreeze 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -319,8 +319,8 @@ struct BlueBreezeError : Error {
319
319
  throw BlueBreezeError(description: "Characteristic not found")
320
320
  }
321
321
 
322
- /*let data =*/ try await characteristic.read()
323
- return []
322
+ let data = try await characteristic.read()
323
+ return data?.export ?? []
324
324
  }
325
325
 
326
326
  @objc public func deviceCharacteristicWrite(id: String, serviceId: String, characteristicId: String, data: Array<UInt8>, withResponse: Bool) async throws {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bluebreeze",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "BlueBreeze bindings for React Native. A modern Bluetooth LE library.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",