Bluetooth NimBLE security: Allow connection only after pressing button
Posted: Wed Jul 10, 2024 9:14 am
Hi,
I've written an application based on the NimBLE Peripheral Example (exampled\bluetooth\nimble\bleprph) and connection and exchanging data works fine.
My only problem is, that every device in the range of the ESP32-S3 is able to connect, which is a big security issue.
What is the conventional method to prevent unauthoriced devices to the ESP32-S3?
I was thinking of a method where the device is only visible for 30 seconds when pressing a pairing button.
Once paired no other device should be able to pair to the ESP32-S3.
Is this the correct way? And is there an example which already has included this security features?
Thank you and best regards,
Mike
I've written an application based on the NimBLE Peripheral Example (exampled\bluetooth\nimble\bleprph) and connection and exchanging data works fine.
My only problem is, that every device in the range of the ESP32-S3 is able to connect, which is a big security issue.
What is the conventional method to prevent unauthoriced devices to the ESP32-S3?
I was thinking of a method where the device is only visible for 30 seconds when pressing a pairing button.
Once paired no other device should be able to pair to the ESP32-S3.
Is this the correct way? And is there an example which already has included this security features?
Thank you and best regards,
Mike