Hello.
I used "ble sniffer" code from github to sniff the mac address the output which i am getting in the form of key value pair.
like this
Name: , Address: 48:ce:cb:54:50:6f, manufacturer data: 060001092002c170d572f663f4447d069d77f286101b7c99b241939980
And I am printing through
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {
//Serial.printf("Advertised Device: %s \n", advertisedDevice.toString().c_str());
Serial.println(advertisedDevice.toString().Address());
}
};
So, I only need to capture an address and no other stuff like manufacturer data and other things
You can see raw code here:- ESP32_BLE_Arduino/BLE_scan.ino at master · nkolban/ESP32_BLE_Arduino (github.com)
Thank You