i use demo ble_app_multilink_central and ble_app_multilink_peripheral,in SDK 8.1.0,but when i use sd_ble_gap_connect (S120 to S110)return NRF_ERROR_INVALID_STATE, why? and how to debug this error?
i use demo ble_app_multilink_central and ble_app_multilink_peripheral,in SDK 8.1.0,but when i use sd_ble_gap_connect (S120 to S110)return NRF_ERROR_INVALID_STATE, why? and how to debug this error?
As the return value suggests, the scanner is not in the right state, which means that the central is either not idle or not scanning when you asked it to connect. Or it could be that an already sent connect request has not been yet acknowledged from the peripheral side
yes,thanks for your help.