nkolban / esp32-snippets

Sample ESP32 snippets and code fragments
https://leanpub.com/kolban-ESP32
Apache License 2.0
2.35k stars 710 forks source link

How do we hide an Esp32 from other devices? #634

Open niyaziatilay opened 6 years ago

niyaziatilay commented 6 years ago

Other devices are doing bluetooth scanning. How do we hide an Esp32 from other devices? How do we get our device not to appear?

Example; pCharacteristic = pServer->createCharacteristic( notAppearFlag ); vs...

Thank you...

chegewara commented 6 years ago
  1. Do not start advertising and connect from peer device with mac address.
  2. Read and try to use whitelisted device.
  3. Having only one service with one characteristic and when peer device write valid value create more services/characteristics that will handle esp32 functionality.
niyaziatilay commented 6 years ago

Thank you very much for your response and your time. I work with the Arduino IDE.

As you mentioned yesterday, I tried to ask your forum sites. I could not get a reply from Esp32 forum.

I am a teacher and I am doing this project for my school's education. Do not look at it because my English and my technical knowledge are not good. I work on voluntary basis.

I described the issue in more detail here:

https://stackoverflow.com/questions/52068454/how-do-we-hide-communication-an-esp32-from-other-devices

I) How do I connect directly with mac address without advertising? II) Which function do I need to use to create a white list?

Perhaps there are examples for the espressive IDF for Eclipse. No one suggested a solution for the Arduino IDE.

I guess there is no example in the Arduino IDE. Or I did not notice. Should I set the white list via mac addresses? With the help of Bluetooth characteristic functions?

Is there a small code sample for direct connection without advertising and for whitelist configuration?

Thank you for everything.

chegewara commented 6 years ago

Since its not library issue i want to invite you here https://github.com/chegewara/esp32-snippets/issues to not spam this library.