IamUtil.getAvailablePairingModes()
DESCRIPTION
Retrieve a list of the available pairing modes on the device.
This function blocks until it has succeeded.
DECLARATION
public abstract PairingMode[] getAvailablePairingModes(Connection connection)
PARAMETERS
connection:
- An established connection to the device
THROWS EXCEPTIONS
IamException:
- with IamError
BLOCKED_BY_DEVICE_CONFIGURATION
if the device configuration does not allow retrieving this list (theIAM:GetPairing
action is not set for the Unpaired role) IamException:
- with IamError
IAM_NOT_SUPPORTED
if Nabto Edge IAM is not supported by the device
RETURNS
A list of available pairing modes.