Open chengxinping opened 6 years ago
因为默认MTU情况下,BLE一个包最多只能发20个字节。 有个requestMTU接口可以尝试修改。 https://developer.android.com/reference/android/bluetooth/BluetoothGatt#requestMtu(int)
Min MTU in LE-U (L2CAP) is 23 octects, 当你使用ATT Write CMD的时候,Payload就有一个字节的Opcode+两个字节的Handle,留给你的Parameter就只剩MTU-3=20字节了
RT 为什么发送数据要限制20个字节