Hi,
这是相关的评论https://support.dialog-semiconductor.com/comment/30628#comment-30628
Can I send notify information more than 20 bytes per packet? I think this is the limit for BLE4.2.
Can I set the BLE to 5.0 so that I can send more bytes in each packet?
Thanks and Regards,
Subbu
Device:
Hi Subramanyan,
In order to receive/send more than 20 bytes as you have mentioned, you should use the ble_gap_mtu_size_set() API, and set the appropriate mtu_size. Please note that this API function should be called prior to creating the attribute database of the device. This is because the device configuration is going to be modified, which will result in clearing the current attribute database (if it exists). Also, in the ble_config.h header file define the data length:
#define dg_configBLE_DATA_LENGTH_RX_MAX(251)
#define dg_configBLE_DATA_LENGTH_TX_MAX(251)
请take a look atDA1469x Power Consumption PeripheralSW example.
Thanks, PM_Dialog