【问题标题】:Classic Bluetooth communication (RFCOMM) in Xamarin.FormsXamarin.Forms 中的经典蓝牙通信 (RFCOMM)
【发布时间】:2019-11-26 05:14:41
【问题描述】:

我正在寻找使用经典蓝牙的经典蓝牙通信 (RFCOMM)/串行端口通信,而不是 Xamarin.Forms 中的低功耗蓝牙 (BLE)。我有一些模拟器,它托管在一个 com 端口和一个蓝牙适配器上。我想连接到那个蓝牙适配器并在我的移动应用中获取/读取数据。

我曾使用 ble.net 插件探索过低功耗蓝牙 (BLE),但我需要连接到一个端口,即蓝牙 SPP 并在移动应用程序中读取数据。

【问题讨论】:

    标签: xamarin.forms uwp bluetooth serial-communication rfcomm


    【解决方案1】:

    Xamarin.forms 中没有经典的蓝牙通信 API。您必须使用 UWP 内置的 Bluetooth RFCOMM API 进行通信。

    您可以查看Bluetooth RFCOMM chat sample 了解如何使用这些 API。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多