DanG
DanG

Reputation: 356

BluetoothLowEnergyAdapter missing from latest BLE.net Nuget package

I am totally inexperienced in ios and xamarin, so i apologize if this is a foolish question.

I am following the examples for BLE.net and I can't find BluetoothLowEnergyAdapter, which is just the starting point. In Visual Studio, I can see all the methods in nexus.protocols.ble, and it doesn't look like it's there:

enter image description here

Has the Nuget package changed? If so, how do I figure out what how to use it without sample code?

Upvotes: 1

Views: 287

Answers (1)

nexus
nexus

Reputation: 514

I'm the maintainer of the ble.net library. The BluetoothLowEnergyAdapter class is platform-specific and only available in the platform packages (i.e., ble.net-android, ble.net-ios, ble.net-uwp).

You'll want to reference the ble.net package in library code and the relevant platform package in your app project(s).

If you have any suggestions for the readme or package descriptions that would have clarified this for you, please do let me know!

Upvotes: 1

Related Questions