3

i need to connect my phone to the esp32 with BLE(Bluetooth Low Energy). But only when you are close to just 1 meters. So, how can i reduce the meters? And also if you go far away from 1 meter, it has to disconnect. I would be happy, if you answer...

Hafiz
  • 31
  • 2

2 Answers2

3

Unfortunately this would be very challenging to implement because you have to rely on the RSSI to approximate the distance which is not always very reliable. Have a look at these links below for more information:-

Youssif Saeed
  • 11,789
  • 4
  • 44
  • 72
0

Connect if the RSSI more than 40 and keep updating the RSSI for 2 seconds, get the average if it's more than -30 then you're too close to the device.

Yasser Jarouf
  • 326
  • 5
  • 18