#Xamarin – #Bluetooth LE plugin version 1.0 (Monkey Robotics finally gets older)

Hello!

It has been some time since I wrote something about BlueTooth Low Energy. I think that the last post that I wrote was the ones about development for Garmin sports smart watchs.

While working with BlueTooth Low Energy devices is common and easy with iOS and Android, with Windows it was somewhat hard. If you work with Xamarin, in the old days we have Monkey Robotics as a common platform to use some BLE features in different projects. But at the end, the best way to work was implement some native code in each platform.

A few days ago I find out that Adrian Secelenau (xabre), has released a package of Xamarin BLE based on Monkey Robotics, which could be considered version 1.0: Xamarin BlueTooth LE.

The truth is that it is quite simple to use and supports the 4 fundamental things to work with BlueTooth

  • Verify the status de BLÉ
  • Discover, connect and disconnect with BLE devices
  • Discover services and characteristics of each BLE device
  • Interact (read and write) with these features

For example, if we create a project for example Xamarin, we see that we can add this package in 2 steps.

 

image

image

We also as we see in the image above also have support for MvvmCross, I know that it is something that will make happy more geeks MVVM as Javier Suarez (@jsuarezruiz) and Josue Yeray (@josueYeray).

As well, surely more forward can migrate / write some example more full for test the package in depth, by now I can tell that the implementation is quite clean and that them examples of code are very useful. For example, here we can see how simple that is accessing the local BLE, check the status of it and subscribe to the DeviceDiscovered() event.

 

image

Greetings @ Toronto

El Bruno

References

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s