Hi,
I am trying to set an nrf52840 pdk (with SDK14 and s140_nrf52840_5.0.0-2.alpha) as peripheral and central at the same time and another nrf52840 pdk just as a peripheral . First the multirole pdk start advertising and smart phones can communicate with it via pairing by using static passkey with MITM . Then i send a command from the phone to tell the pdk start scanning for another nrf52840 pdk wich acts just as a peripheral and its characteristics are protected by static passkey with MITM as well. Everything works fine utill i start dicovery for nrf52840 pdk(just peripheral) services from the multirole nrf52840 pdk (wich now act as central), I get Collector did not use MITM from the peripheral side and disconnecting, and on the multirole side i get Disconnected with error 13 which means Operation timed out. So my question is :
Is its possible to pair two nrf52840 pdk with static passkey? note that i use sd_ble_gap_auth_key_reply() to answer the passkey from the central to the peripheral, which i am not sure if it's the right way! My idea is based on ble_app_multirole_lesc example.