Bluetooth Classic pairing on/off
Posted: Mon Nov 18, 2019 6:10 am
Hi all,
I'am working on a esp32 project that uses Bluetooth. Now I'am looking into the Bluetooth classic example using SPP (the "bt_spp_acceptor" as a starting point).
This is exactly what I need, so I can use the Bluetooth connection as a serial port.
Now the real question: I can connect with any device to my ESP32 client. How do I limit this? I only want devices to connect to my ESP that are 'mine'.
Now everybody with a notebook can connect to my ESP32 using bluetooth via the "JustWorks" method, and they can read/write on my serial port.
What I actually want is something of a password/whitelist so I can block access to unrestricted users.
Any idea on how to do this?
I now the BLE example has features like 'whitelisting' but I can't seem to find those on the "Bluetooth Classing API".
I'am working on a esp32 project that uses Bluetooth. Now I'am looking into the Bluetooth classic example using SPP (the "bt_spp_acceptor" as a starting point).
This is exactly what I need, so I can use the Bluetooth connection as a serial port.
Now the real question: I can connect with any device to my ESP32 client. How do I limit this? I only want devices to connect to my ESP that are 'mine'.
Now everybody with a notebook can connect to my ESP32 using bluetooth via the "JustWorks" method, and they can read/write on my serial port.
What I actually want is something of a password/whitelist so I can block access to unrestricted users.
Any idea on how to do this?
I now the BLE example has features like 'whitelisting' but I can't seem to find those on the "Bluetooth Classing API".