Hi
I am a little confused regarding the parameters of 'GapBondMgr'. Or at least I think it is there.
My device is a peripheral device with no display. I do have a button. I am using SimpleBLEPeripheral as starting point.
My requirement is as follow:
1) In order to do new pairing, the user need to press the button first. Then the device should be visible and allows 'Just work' pairing. The device should allows Bonding.
2) If the user doesn't press the button, the device should allow connection from previously bonded central devices, but not allow new pairing.
I did the following definition:
uint32 passkey = 0; // passkey "000000"
uint8 pairMode = GAPBOND_PAIRING_MODE_WAIT_FOR_REQ;
uint8 mitm = FALSE;
uint8 ioCap = GAPBOND_IO_CAP_NO_INPUT_NO_OUTPUT;
uint8 bonding = TRUE;
new_adv_enabled_status=TRUE;
GAPRole_SetParameter(GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &new_adv_enabled_status );
This allows connections and paring.
I didn't find how to allow connection but disable new pairing