【问题标题】:does xamarin supports coreBluetooth for iOS?xamarin 支持 iOS 的 coreBluetooth 吗?
【发布时间】:2013-03-09 05:38:03
【问题描述】:

我是 Xamarin 的新手,正在执行可行性研究。

我不确定 Xamarin 是否提供跨平台(包括 iOS、android、Windows)的低功耗蓝牙通用 API?在 iOS 中,这个 API 是 coreBluetooth。

请提供详细信息;我在网上搜索时找不到任何好的信息。

【问题讨论】:

    标签: xamarin.ios xamarin core-bluetooth bluetooth-lowenergy xamarin.mobile


    【解决方案1】:

    是的,Xamarin.iOS 和 Xamarin.Android 支持蓝牙。

    不,它们不提供通用 API


    为了我的 Sphero hacking - 我写了一个跨平台的蓝牙 Sphero 专用模块https://github.com/slodge/BallControl/tree/master/Cirrious.Sphero.WorkBench/Plugins/Sphero

    在 iOS 上,此模块使用 ExternalAccessory 而不是 CoreBLuetooth - 只是因为这是 Sphero 的工作方式,但在其他平台上 Sphero 使用蓝牙 SPP

    如果您需要一些CoreBluetooth 示例代码,那么我在http://forums.xamarin.com/discussion/comment/7576/Solving 'CBConcreteCentralManager is not powered on' in Core Bluetooth in MonoTouch 中编写并测试了一些代码

    【讨论】:

      猜你喜欢
      • 2022-06-14
      • 2016-05-07
      • 1970-01-01
      • 1970-01-01
      • 2013-05-10
      • 2016-11-27
      • 1970-01-01
      • 1970-01-01
      • 2014-07-23
      相关资源
      最近更新 更多