Hi all,
I'm hardly able to find a documented BLE library that function with Xamarin so I'll have to try to debug one that sort-of-work, at least it does with Android and IOS (Xaber's BLE.Plugin) but doe not with UWP. Problem is, the following error keep coming up regardless of how and where I ref the nugget packages. Whether I install them into the main application, or the platform-specific one, or both (as per recommendation from MS I've read earlier), it just keeps on throwing the same error no matter what.
Can someone confirm this is valid error? Or am I simply wasting my time trying to make this work? ps. I did scavenged the entire internet for answers however there are no concise enough guidance (for me anyway) that helped me sorting this out. Grateful for any advice.
Exception:
An exception of type 'System.NotImplementedException' occurred in Plugin.BLE.dll but was not handled in user code
This functionality is not implemented in the portable version of this assembly. You should reference the NuGet package from your main application project in order to reference the platform-specific implementation.
Main application project simple test code
namespace BLEtest
{
public partial class MainPage : ContentPage
{
IBluetoothLE ble;
IAdapter adapter;
public MainPage()
{
InitializeComponent();
ble = CrossBluetoothLE.Current; <!-- <<<<< It fails here. MvvCrossxxxx package throws the same error, tried that -->
adapter = CrossBluetoothLE.Current.Adapter;
}
}
}