How refuse connecting of any unknown central out of time | Cypress Semiconductor
How refuse connecting of any unknown central out of time
I have a Peripheral all time advertising, configured like this:
Discovery mode: General
Advertising type: Connectable undirected advertising
Filter policy: Scan request Any | Connect request Any
Security mode: Mode1, no security (No auth, no encry.)
I want push a button in the peripheral device and allow (during a time of 2 minutes) any unknown central can get connection.
After this time, peripheral must refuse again any unknown central except devices that got connect during de allowed time.
How could I do this ?
Any help will be appreciated,