简体   繁体   English

我可以实施iOS应用程序以充当BLE服务吗?

[英]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: 我需要能够以编程方式定义:

  • a service UUID 服务UUID
  • characteristics for the service 服务的特点
  • a way to update the values of these 一种更新这些值的方法
  • a way to define the user permission of the characteristics: read / write / notify 一种定义用户权限的方法的特征:读/写/通知
  • a way to define the transmission (TX) power of the service 定义服务传输(TX)功率的方法

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.

相关问题 iOS 上的应用程序能否在 BLE 的设备信息服务中实现固件版本字符串特性 - Can an app on iOS implement the Firmware Version String characteristic in Device Information Service in BLE 如何将 iOS 应用程序实现为 HID BLE 鼠标 - How do I implement iOS app as HID BLE mouse iOS Temperature示例应用程序中使用了哪种BLE服务 - Which BLE service is used in iOS Temperature example app 如何在iOS应用程序上实现Apple推送通知服务? - How can I implement Apple Push Notification Service on iOS Application? 在iOS中在后台实施BLE扫描 - Implement BLE scan in the background in iOS 对于 BLE 服务是否有任何限制,我在 iOS swift 的 BLE 设备中添加了新服务,但没有进入 IOS - is there any limit For BLE services, I have added New Service in BLE device in iOS swift But Not getting in IOS 即使 iOS 应用程序在后台运行,它也可以充当信标吗? - Can iOS app act as beacon, even when it is running in the background? 如何在iOS中实现离线缓存文章阅读应用程序? - How can i implement offline caching article reading app in iOS? 如何在我的iOS应用程序中实现该功能? - How can I implement the feature in my iOS app? 如何在iOS应用中实现Facebook评论? - How can I implement Facebook comments in an iOS app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM