Nick-Blair19 / Bug-in-ble.plugin-latest-3.1.0-nuget-package

0 stars 0 forks source link

Ble.plugin bug #1

Open Nick-Blair19 opened 1 month ago

Nick-Blair19 commented 1 month ago

I have code



and error message is with latest prerelease vs 22

Error (active) CS1061 'Task<IService>' does not contain a definition for 'GetCharacteristicAsync' and no accessible extension method 'GetCharacteristicAsync' accepting a first argument of type 'Task<IService>' could be found (are you missing a using directive or an assembly reference?)

I am using the ble.plugin sample code from 2017 https://www.jenx.si/2019/08/16/bluetooth-gatt-xamarin-forms-client/ and the latest release of the ble.plugin was May 24.
I am waiting for newer Net Maui sample code to be published on the web as maybe different from the 2017 sample?
I have put in blue.plugin user directives in the relevant file and don't understand this error
Also I previously had SetNotifyValue in the Corebluetooth api but that doesn't exist in ble.plugin. Is there an equivalent?
This is a net Maui project with visual studio preview 17.11.0 v 4.0 I need communication with a GATT BLE device for my app. I am using latest visual studio with XCODE 15.0 and testing on an IPAD iOS 17.6
Nick-Blair19 commented 1 month ago

The code with the error is sendCharacteristic=service.GetCharacteristicAsync(GattIdentifiers.UartGattCharacteristicSendId);