Skip to content

Commit

Permalink
Add StopDevicePairing method in Java
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo committed Mar 14, 2024
1 parent eecc2a6 commit aa3a0ae
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,15 @@ public void unpairDeviceCallback(long deviceId, UnpairDeviceCallback callback) {
unpairDeviceCallback(deviceControllerPtr, deviceId, callback);
}

/**
* This function stops a pairing or commissioning process that is in progress.
*
* @param deviceId The remote device Id.
*/
public void stopDevicePairing(long deviceId) {
stopDevicePairing(deviceControllerPtr, deviceId);
}

/**
* Returns a pointer to a device currently being commissioned. This should be used before the
* device is operationally available.
Expand Down Expand Up @@ -1474,6 +1483,8 @@ private native void continueCommissioning(
private native void unpairDeviceCallback(
long deviceControllerPtr, long deviceId, UnpairDeviceCallback callback);

private native void stopDevicePairing(long deviceControllerPtr, long deviceId);

private native long getDeviceBeingCommissionedPointer(long deviceControllerPtr, long nodeId);

private native void getConnectedDevicePointer(
Expand Down

0 comments on commit aa3a0ae

Please sign in to comment.