diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6296d18..5f22467 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,8 @@ on: - '*' - '*/*' - '!master' + pull_request: + types: [opened, reopened] jobs: build-android: diff --git a/quick_blue/ios/Classes/SwiftQuickBluePlugin.swift b/quick_blue/ios/Classes/SwiftQuickBluePlugin.swift index 057983f..15e3d38 100644 --- a/quick_blue/ios/Classes/SwiftQuickBluePlugin.swift +++ b/quick_blue/ios/Classes/SwiftQuickBluePlugin.swift @@ -240,6 +240,7 @@ extension SwiftQuickBluePlugin: CBPeripheralDelegate { public func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) { print("peripheral:didUpdateValueForForCharacteristic \(characteristic.uuid) \(characteristic.value as! NSData) error: \(error)") self.messageConnector.sendMessage([ + "deviceId": peripheral.uuid.uuidString, "characteristicValue": [ "characteristic": characteristic.uuid.uuidStr, "value": FlutterStandardTypedData(bytes: characteristic.value!) diff --git a/quick_blue_macos/macos/Classes/QuickBlueMacosPlugin.swift b/quick_blue_macos/macos/Classes/QuickBlueMacosPlugin.swift index 7f9c719..e0abb0c 100644 --- a/quick_blue_macos/macos/Classes/QuickBlueMacosPlugin.swift +++ b/quick_blue_macos/macos/Classes/QuickBlueMacosPlugin.swift @@ -240,6 +240,7 @@ extension QuickBlueMacosPlugin: CBPeripheralDelegate { public func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor characteristic: CBCharacteristic, error: Error?) { print("peripheral:didUpdateValueForForCharacteristic \(characteristic.uuid) \(characteristic.value as! NSData) error: \(error)") self.messageConnector.sendMessage([ + "deviceId": peripheral.uuid.uuidString, "characteristicValue": [ "characteristic": characteristic.uuid.uuidStr, "value": FlutterStandardTypedData(bytes: characteristic.value!)