0

I am using the ANCS service to get notifications on BLE113. It works fine except I can only get 20 bytes of data as that is the MTU restriction. Since iOS sends data larger than 20 bytes, I miss anything more than 20 bytes. BLE113 attclient_attribute_value event only reads 20 bytes.

How can I read rest of the data? I tried read long but it gives me a read not permitted error.

Has anyone encountered this problem and/or found a solution?

4

1 回答 1

0

我使用的是 Nordic 8001 芯片,它也有 20 字节的 MTU。来自 ANCS 文档:

如果响应大于协商的 GATT 最大传输单元 (MTU),则 NP 将其拆分为多个片段。NC 必须通过拼接每个片段来重构响应。当接收到每个请求属性的完整元组时,响应就完成了。

因此,如果消息大于 20 字节,您应该收到更多 20 字节的片段。

于 2014-06-20T11:57:47.563 回答