当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - What does [peripheral maximumWriteValueLengthForType:CBCharacteristicWriteWithResponse] return?

问题描述:

I am running the following code:

[peripheral maximumWriteValueLengthForType:CBCharacteristicWriteWithResponse];

In my case (iPhone 7, iOS 10.0.2) it returns 512. What is the meaning of this number?

From documentation:

method maximumWriteValueLengthForType:

The maximum amount of data, in bytes, that can be sent to a characteristic in a single write type.

But if I try to send 500 or 600 bytes it works absolutely the same. The target device receives all data. And in both cases response callback is not called.

分享给朋友:
您可能感兴趣的文章:
随机阅读: