diff options
author | Sven Gothel <[email protected]> | 2021-10-06 01:50:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-10-06 01:50:59 +0200 |
commit | 8417e0bab2755faf9cc87415dd35e5d7d7e70c0d (patch) | |
tree | 9e3a65de2e2352521a6bcf4d774d682b9f107c76 /examples/java/DBTPeripheral00.java | |
parent | b18ef5d5da0c8c84f2524b9ca505269c8340496f (diff) |
SMPKeyBin Version 4: Add localAddress (adapter) to filename with shortened format while including it in bin file.
Filename format is now: `bd_010203040506_C026DA01DAB11.key`
^^ adapter address
^^ remote address
Diffstat (limited to 'examples/java/DBTPeripheral00.java')
-rw-r--r-- | examples/java/DBTPeripheral00.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/java/DBTPeripheral00.java b/examples/java/DBTPeripheral00.java index 06880e76..6eb2436d 100644 --- a/examples/java/DBTPeripheral00.java +++ b/examples/java/DBTPeripheral00.java @@ -151,8 +151,8 @@ public class DBTPeripheral00 { // next: deviceReady(..) break; case FAILED: { - final boolean res = SMPKeyBin.remove(KEY_PATH, device.getAddressAndType()); - BTUtils.println(System.err, "****** PAIRING_STATE: state "+state+"; Remove key file "+SMPKeyBin.getFilename(KEY_PATH, device.getAddressAndType())+", res "+res); + final boolean res = SMPKeyBin.remove(KEY_PATH, device); + BTUtils.println(System.err, "****** PAIRING_STATE: state "+state+"; Remove key file "+SMPKeyBin.getFilename(KEY_PATH, device)+", res "+res); // next: deviceReady() or deviceDisconnected(..) } break; case REQUESTED_BY_RESPONDER: |