Perform Password Open pairing, requesting the specified username and authenticating using the specified password. Runs asynchronously with a callback.
In this mode a device has set a password which can be used in the pairing process to grant a client access to the device. The client can pair remotely to the device if necessary; it is not necessary to be on the same LAN.
Error information is sent to the callback.
public abstract void pairPasswordOpenCallback(Connection connection, String desiredUsername, String password, IamCallback cb)
- An established connection to the device this client should be paired with
- Assign this username on the device if available (pairing fails with .USERNAME_EXISTS if not)
- the common (not user-specific) password to allow pairing using Password Open pairing
- The callback that will be run once the function has completed successfully or erroneously.