new PairingRequestMessage()
Extends
Methods
(static) PairingRequestMessage#getApplicationName() → {String}
Get the field value
The name of the application the peripheral is associated with. This is the "resourceDescriptor" in the handshake
Returns:
- Type
- String
(static) PairingRequestMessage#getAuthenticationToken() → {String|Null}
Get the field value
The token, recognized by the specific device.
Returns:
- Type
- String | Null
(static) PairingRequestMessage#getName() → {String}
Get the field value
The peripheral sends a pairing request containing the peripheral name
Returns:
- Type
- String
(static) PairingRequestMessage#getSerialNumber() → {String}
Get the field value
The peripheral serial number
Returns:
- Type
- String
(static) PairingRequestMessage#setApplicationName(applicationName)
Set the field value
The name of the application the peripheral is associated with. This is the "resourceDescriptor" in the handshake
Parameters:
Name | Type | Description |
---|---|---|
applicationName |
String |
(static) PairingRequestMessage#setAuthenticationToken(authenticationToken)
Set the field value
The token, recognized by the specific device.
Parameters:
Name | Type | Description |
---|---|---|
authenticationToken |
String | Null |
(static) PairingRequestMessage#setName(name)
Set the field value
The peripheral sends a pairing request containing the peripheral name
Parameters:
Name | Type | Description |
---|---|---|
name |
String |
(static) PairingRequestMessage#setSerialNumber(serialNumber)
Set the field value
The peripheral serial number
Parameters:
Name | Type | Description |
---|---|---|
serialNumber |
String |