mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
Merge branch 'bugfix/wifi_prov_sec2_bluedroid_v5.0' into 'release/v5.0'
protocomm: Increase Bluedroid-BLE maximum buffer size (v5.0) See merge request espressif/esp-idf!20820
This commit is contained in:
@@ -15,7 +15,16 @@
|
|||||||
#include "protocomm_priv.h"
|
#include "protocomm_priv.h"
|
||||||
#include "simple_ble.h"
|
#include "simple_ble.h"
|
||||||
|
|
||||||
#define CHAR_VAL_LEN_MAX (256 + 1)
|
/* NOTE: For the security2 scheme, the payload size is quite larger
|
||||||
|
* than that for security1. The increased value has been selected
|
||||||
|
* keeping in mind the largest packet size for security2 and the
|
||||||
|
* factors affecting it.
|
||||||
|
*/
|
||||||
|
#if CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
|
||||||
|
#define CHAR_VAL_LEN_MAX (480 + 1)
|
||||||
|
#else
|
||||||
|
#define CHAR_VAL_LEN_MAX (256 + 1)
|
||||||
|
#endif // CONFIG_ESP_PROTOCOMM_SUPPORT_SECURITY_VERSION_2
|
||||||
#define PREPARE_BUF_MAX_SIZE CHAR_VAL_LEN_MAX
|
#define PREPARE_BUF_MAX_SIZE CHAR_VAL_LEN_MAX
|
||||||
|
|
||||||
static const char *TAG = "protocomm_ble";
|
static const char *TAG = "protocomm_ble";
|
||||||
|
Reference in New Issue
Block a user