[英]Xamarin IOS Bluetooth LE advertising
I'm trying to write a Xamarin
.IOS app that advertises a BLE
service. 我正在尝试编写一个
Xamarin
.IOS应用程序,用于宣传BLE
服务。 When another user opens the app, they should be able to see all other users advertising from the same app (even if app is closed). 当另一个用户打开该应用程序时,他们应该能够看到所有其他用户通过同一应用程序做广告(即使该应用程序已关闭)。
I'm finding the examples and explanation hard to come by. 我发现很难找到示例和解释。 Currently, I can scan for devices using the
CBCentralManager
. 目前,我可以使用
CBCentralManager
扫描设备。
How do I go about advertising a service with a specific GUID
so I can pick it up from another device? 如何使用特定的
GUID
宣传服务,以便可以从其他设备上取货?
Any examples or links will be much appreciated!! 任何例子或链接将不胜感激!
You need to refer Core Bluetooth framework. 您需要参考Core Bluetooth框架。 Following is the link :
以下是链接:
https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/PerformingCommonPeripheralRoleTasks/PerformingCommonPeripheralRoleTasks.html#//apple_ref/doc/uid/TP40013257-CH4-SW1 https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/PerformingCommonPeripheralRoleTasks/PerformingCommonPeripheralRoleTasks.html#//apple_ref/doc/uid/TP40013257-CH4-SW1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.