核心蓝牙的限制?

发布于 2024-12-27 20:59:26 字数 379 浏览 3 评论 0原文

我找不到任何关于 CoreBluetooth 框架读/写限制的提及。有谁知道速度和速度是多少?这两个函数的大小限制是什么?

-(void) writeValue:(int)serviceUUIDcharacteristicUUID:(int)characteristicUUID p:(CBPeripheral *)p 数据:(NSData *)data

-(void)readValue:(int)serviceUUIDcharacteristicUUID:(int)characteristicUUID p:(CBPeripheral *)p

我需要知道数据的最大大小是多少,以及我们可以以什么速度以及多快的速度使用这些函数。

预先感谢您的任何帮助。

西亚

I can't find any mention of the limitations on CoreBluetooth framework's read/write. Does anyone know what the speed & size limitations of these two functions are?

-(void) writeValue:(int)serviceUUID characteristicUUID:(int)characteristicUUID p:(CBPeripheral *)p data:(NSData *)data

-(void) readValue: (int)serviceUUID characteristicUUID:(int)characteristicUUID p:(CBPeripheral *)p

I need to know what the maximum size for data is and at what speed and how fast we can use these functions.

Thanks in advance for any help.

Sia

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鸠书 2025-01-03 20:59:26

连接/传输速度完全由从属端决定,而不是主控端(您的iPhone)。您的 iPhone 应用程序可以请求更快或更慢的传输速率,但从设备决定是否允许。
自从 CoreBluetooth 专为与低功耗蓝牙一起使用而设计以来,就已经这样做了,并且随着传输速率的增加,会使用更多的电池。由于保证电池寿命的是 BLE 设备的制造商,而不是 iPhone 应用程序的创建者,因此必须这样做。

The connection/transfer speed is decided totally by the slave side, and not the master (your iPhone). Your iPhone app can request faster or slower transfer rates, but the slave decides if this will be allowed or not.
This has been done since CoreBluetooth is made for use with Bluetooth Low Energy, and as the transfer rates increases, more battery is used. Since it is the manufacturers of the BLE devices that are guaranteeing for the battery life, and not the creator of the iPhone app, it has to be done this way.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文