How to use BLE pluging

i recently purchased the “Bluetooth LE for iOS, tvOS and Android” plugin from the asset store link :"Unity Asset Store - The Best Assets for Game Making"and i have no clue how to use being a beginner to unity i imported the sample scene and when i build the sample scene for android i get an error saying “cannot convert classes into dex format” i have absolutely no idea how to solve this problem
i basically want to make a android that receives serial data from an arduino via bluettooth
Any help will be much appreciated

Hello @BaluB

I don’t know If you have found any solution yet. I did the same for the ios I can tell that they are a few things that you have to do to make it works.

  1. You have Initialize and scan for the BLE

  2. On scanning Add the peripheral and do the Connection

  3. Immediately after connection do the SubscribeCharacteristicWithDeviceAddress

In the BluetoothDeviceScript find the line 248 If you read the code after that you can see how it look up the callback to try to receive the data.

There is also something else you need to know. You have to know that the system is asynchronous. That means when you call the method it doesn’t respond right away and may not complete as fast as you expect.

You can see more details and my comments here: Nerd Club: Bluetooth with Unity for iOS and Android