[英]Can I implement an iOS App to act as a BLE service?
Can I implement an iOS App to act as a Bluetooth low energy service? 我可以实施iOS应用程序以充当低功耗蓝牙服务吗?
I need to be able to programmatically define: 我需要能够以编程方式定义:
Would appreciate if you could point me out to a good demo / example to get started or even share some code snippet so this can become part of the Documentation of iOS. 如果您能向我指出一个好的演示/示例以入门甚至共享一些代码片段,以便可以成为iOS文档的一部分,将不胜感激。
Read the Core Bluetooth guide as throughly as possible, especially setting up a Peripheral Service: 尽可能详尽地阅读Core Bluetooth指南,尤其是设置外围设备服务:
https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html#//apple_ref/doc/uid/TP40013257-CH1-SW1 https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/AboutCoreBluetooth/Introduction.html#//apple_ref/doc/uid/TP40013257-CH1-SW1
Keep in mind that if you are looking to adjust these parameters you need to pay attention to how iOS changes the BLE data structure being emitted when in background mode / inactive state. 请记住,如果要调整这些参数,则需要注意iOS在后台模式/非活动状态下如何更改正在发射的BLE数据结构。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.