更改了MAX_PUD_SIZE大小为255后还是最大只能传输20个字节
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
按下面修改应该不会出现问题
// Maximum size in bytes of the BLE HCI PDU. Valid range: 27 to 255 // The maximum ATT_MTU is MAX_PDU_SIZE - 4. #ifndef MAX_PDU_SIZE #if defined(BLE_V42_FEATURES) && (BLE_V42_FEATURES & SECURE_CONNS_CFG) #define MAX_PDU_SIZE 255 #else #define MAX_PDU_SIZE 27 #endif //(BLE_V42_FEATURES & SECURE_CONNS_CFG) #endif