mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-07 01:30:05 +00:00
apps/blestress - switch from PSM = 1 to PSM = 0x80 (128) - from dynamic range
This commit is contained in:
committed by
Łukasz Rymanowski
parent
aa2267ab91
commit
bf931d5ee6
@@ -1365,7 +1365,7 @@ rx_stress_start(int test_num)
|
||||
break;
|
||||
case 10:
|
||||
console_printf("Stress L2CAP send\033[0m\n");
|
||||
rc = ble_l2cap_create_server(1, STRESS_COC_MTU,
|
||||
rc = ble_l2cap_create_server(TEST_PSM, STRESS_COC_MTU,
|
||||
rx_stress_10_l2cap_event, NULL);
|
||||
assert(rc == 0);
|
||||
rx_stress_simple_adv(&rx_stress_adv_sets[10]);
|
||||
|
||||
@@ -44,6 +44,8 @@ extern "C" {
|
||||
#define STRESS_FIND_SRV 1
|
||||
#define STRESS_FIND_CHR 2
|
||||
#define STRESS_FIND_DSC 3
|
||||
/* L2CAP PSM */
|
||||
#define TEST_PSM 0x80
|
||||
|
||||
struct stress_gatt_search_ctx;
|
||||
typedef void stress_gatt_disc_end_fn(struct stress_gatt_search_ctx *search_ctx);
|
||||
|
||||
@@ -1127,7 +1127,7 @@ tx_stress_10_gap_event(struct ble_gap_event *event, void *arg)
|
||||
assert(sdu_rx != NULL);
|
||||
|
||||
tx_stress_ctx->conn_handle = event->connect.conn_handle;
|
||||
rc = ble_l2cap_connect(event->connect.conn_handle, 1,
|
||||
rc = ble_l2cap_connect(event->connect.conn_handle, TEST_PSM,
|
||||
STRESS_COC_MTU, sdu_rx,
|
||||
tx_stress_10_l2cap_event, NULL);
|
||||
assert(rc == 0);
|
||||
|
||||
Reference in New Issue
Block a user