Stop advertising after failed pin for certain amount of time

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
ant777222
Offline
Last seen: 1 year 5 months ago
Joined: 2019-07-11 17:03
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 

Device: 
PM_Dialog
Offline
Last seen: 9 months 2 days ago
Staff
Joined: 2018-02-08 11:03
Hi ant777222,

Hi ant777222,

The CodeLess does not include security functionality. I would suggest you to take a look at the ble_app_security example of the SDK. You should add a counter in order to check how many times the pin is entered and then stop advertising.

Thanks, PM_Dialog