diff options
Diffstat (limited to 'examples/java/DBTScanner10.java')
-rw-r--r-- | examples/java/DBTScanner10.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/java/DBTScanner10.java b/examples/java/DBTScanner10.java index f6f31b43..c34925e8 100644 --- a/examples/java/DBTScanner10.java +++ b/examples/java/DBTScanner10.java @@ -359,8 +359,8 @@ public class DBTScanner10 { BTUtils.println(System.err, "****** Connecting Device: No SecurityDetail for "+device.toString()); } final BTSecurityLevel req_sec_level = null != sec ? sec.getSecLevel() : BTSecurityLevel.UNSET; - HCIStatusCode res = SMPKeyBin.readAndApply(KEY_PATH, device, req_sec_level, true /* verbose */); - BTUtils.fprintf_td(System.err, "****** Connecting Device: SMPKeyBin::readAndApply(..) result %s\n", res.toString()); + HCIStatusCode res = device.uploadKeys(KEY_PATH, req_sec_level, true /* verbose_ */); + BTUtils.fprintf_td(System.err, "****** Connecting Device: BTDevice::uploadKeys(...) result %s\n", res.toString()); if( HCIStatusCode.SUCCESS != res ) { if( null != sec ) { if( sec.isSecurityAutoEnabled() ) { |