I want the ESP32 to read the Service UUID 0x1805 and the Characteristic UUID 0x2A2B of a mobile phone. An iPhone requires a secure BLE connection to read the characteristic values.
I would like this done in the Expressif IDF (i.e. not in the Arduino IDE).
ESP32 is the client (central), the iPhone and android is the server (peripheral).
ESP32 acting as the client / central, scanning the advertisement packets and requesting a connection to the phone which is acting as the server /peripheral.