Hello, I want to ask a question. We have a project that needs OTA function. There are two Bluetooth devices A and B.
1. Both A and B are central_and_peripheral
2. A's peripheral role and mobile phone connection
3. The centeral role of A is connected with the peripheral role of B
4. First, A and B are connected, and then A is connected with the mobile phone, and then the mobile phone OTA to A, but A cannot enter the bootloader
Through Debug and query, it is caused by the different handls caused by the two connection events, in the ble_dfu.c file,static void on_rw_authorize_req(ble_evt_t const * p_ble_evt)
{
if (p_ble_evt->evt.gatts_evt.conn_handle != m_dfu.conn_handle)
{
return;
}
}
Is this situation normal, or is there any optimization?