Stop advertising after failed pin for certain amount of time
I have been working with the codeless AT command code for the DA14580. I have made some changes to fit the application that I need. I was wondering if there is a way to keep track of failed connections if a wrong pin is entered. For example, I would like to implement a scenario where if a pin was entered wrong 5 times, I would like to stop advertising for 5 minutes. I would like to add this as an added security feature. Is this possible to do and how would I keep track of failed connecions if it is?
Thanks
Anthony