【发布时间】:2020-08-24 20:57:32
【问题描述】:
在 iOS 上,当我请求 MTU 时,.withoutResponse 与 .withResponse 的值不同。我意识到它可能会有所不同,因为函数需要该参数,但为什么会有所不同?
这是在设备上(BLE 4.2):
(lldb) po peripheral.maximumWriteValueLength(for: .withoutResponse)
182
(lldb) po peripheral.maximumWriteValueLength(for: .withResponse)
512
在另一台设备 (BLE 5) 上,我得到:
(lldb) po peripheral.maximumWriteValueLength(for: .withoutResponse)
509
(lldb) po peripheral.maximumWriteValueLength(for: .withResponse)
512
【问题讨论】:
标签: ios bluetooth core-bluetooth