-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to see mac of device #870
Comments
The only way to get the static device ID address is to bond with it, then you can get the address from the onIdentity callaback. |
can you give a code snippet example on how to implement once bonded i can see the mac on the serial monitor? |
and once bonded will it be the true mac of the device? and not the randoom one? because i need the ability to identify a device from another one that is why i need the decrypted mac/resolved mac |
Please see the secure server example for more info. Then implement the callback: NimBLE-Arduino/src/NimBLEServer.cpp Line 1010 in 3081bc1
The identity address is in |
Funny you say that i tried exactly that but the resulting mac is still the random one |
Works for me? |
for clarity im talking the esp is a server and the device that connects to it is a phone ( that is why i need to see the phone mac but not the randoom one ) take a look at my code // DS18B20 Sensor Setup // BLE HID and Service UUIDs // HID Descriptor (Minimal Keyboard Example) // BLE Server, Service, and Characteristics // App Authentication // RSSI Tracking // RSSI Thresholds // Temperature Change Detection // Function Declarations class ServerCallbacks : public NimBLEServerCallbacks {
}; class CharacteristicCallbacks : public NimBLECharacteristicCallbacks { void setup() {
} void loop() {
} void pollAndSendTemperature() {
} void sendTemperatureToApp() { void forwardCommandToMega(const String& command) { void handleReceivedData(const std::string& receivedData) {
} void checkRssi() {
} void restartAdvertising() {
} |
Hey im new here and i want to know how to see the device mac connected to the esp ( talking about phone here ) but not the mac that changes i mean the decrypted id that uses the irk or something else that can identify the phone from another one maybe its not mac i dunno im new
Using esp32c3
The text was updated successfully, but these errors were encountered: