This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to avoid the Not expected connect?

image description

Parents Reply
  • Yes, it's the most common solution (note: there is nothing called public key unless you are talking about LESecure connection).

    Another solution is to let the application disconnect the connection if the central device can't provide correct "password". For example, the central must write to a characteristic a "code" in the first 30 seconds after connected or it will be disconnected. But this is not very common only used when whitelisting can't be used.

Children
No Data
Related