When the button is pressed on the Keyfob_slave, the device goes in advertising mode and connection between master and keyfob can be established. I am trying to automate this process, but something is missing ! I tried to trigger the key event "Hal_ProcessEvent( Hal_TaskID, HAL_KEY_EVENT)" then I tried to call Advert. directly osal_set_event( gapRole_TaskID, START_ADVERTISING_EVT).
Well, it does not seem to me that Keyfob go Advertising ?!
Would also be possible to wake the Keyfob without advertising so that it just wait for GAP_LINK_ESTABLISHED_EVENT for some time. But it does not seem that the Keyfob one may connect to the Keyfob just by leaving POWER_SAVE mode.
Is this acheivable ?