Search found 2 matches
- Fri Aug 21, 2020 10:32 am
- Forum: ESP-IDF
- Topic: ESP32 Bluetooth Pairing Mode Change
- Replies: 3
- Views: 11903
Re: ESP32 Bluetooth Pairing Mode Change
Hello, You are very close to the solution you want; The code you used to make the passkey be shown on the android device is correct, you just have to change some of the parameters. Try changing these like so: esp_ble_auth_req_t auth_req = ESP_LE_AUTH_REQ_SC_MITM_BOND; esp_ble_io_cap_t iocap = ESP_I...
- Mon Jul 20, 2020 5:59 am
- Forum: General Discussion
- Topic: Continuous BLE Scan + get RSSI
- Replies: 1
- Views: 12311
Re: Continuous BLE Scan + get RSSI
Try using this: class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { void onResult(BLEAdvertisedDevice advertisedDevice) { Serial.printf("Advertised Device: %s", advertisedDevice.toString().c_str()); Serial.print(" RSSI: "); Serial.println(advertisedDevice.getRSSI()); } };