Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does xamarin supports coreBluetooth for iOS?

I am new to Xamarin, and performing a feasibility study.

I am not sure if Xamarin provides a Common API for Bluetooth Low energy across platforms including iOS, android, Windows? In iOS, this API is coreBluetooth.

Please provide details; I couldn't find any good information when searching the net.

like image 243
Whoami Avatar asked Mar 20 '13 08:03

Whoami


1 Answers

Yes Xamarin.iOS and Xamarin.Android do support Bluetooth.

No, they do not supply a common API


For my Sphero hacking - I wrote a cross platform BlueTooth Sphero-specific module https://github.com/slodge/BallControl/tree/master/Cirrious.Sphero.WorkBench/Plugins/Sphero

On iOS this module used ExternalAccessory rather than CoreBLuetooth - just because that is the way Sphero works, but on the other platforms Sphero uses Bluetooth SPP

If you need some CoreBluetooth sample code, then I wrote and tested some code in http://forums.xamarin.com/discussion/comment/7576/ and Solving 'CBConcreteCentralManager is not powered on' in Core Bluetooth in MonoTouch

like image 150
Stuart Avatar answered Oct 02 '22 00:10

Stuart