szymon-czapracki commented on code in PR #2019: URL: https://github.com/apache/mynewt-nimble/pull/2019#discussion_r2048547069
########## nimble/host/src/ble_eatt.c: ########## @@ -355,7 +441,22 @@ ble_gatt_eatt_write_cl_cb(uint16_t conn_handle, return 0; } - ble_eatt_start(conn_handle); +#if (MYNEWT_VAL(BLE_EATT_AUTO_CONNECT)) + struct ble_gap_conn_desc desc; + int rc; + + rc = ble_gap_conn_find(conn_handle, &desc); + assert(rc == 0); + + if (desc.role == BLE_GAP_ROLE_SLAVE) { + /* Add initial delay as peripheral to avoid collision */ + conn_cb_arg.conn_handle = conn_handle; + os_callout_reset(&eatt_conn_timer, 500 * OS_TICKS_PER_SEC / 1000); Review Comment: Done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@mynewt.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org