Class DevicePairingRequestedEventArgs
- Namespace
- nanoFramework.Device.Bluetooth
- Assembly
- nanoFramework.Device.Bluetooth.dll
This class contains the arguments for the Pairing event.
public class DevicePairingRequestedEventArgs
- Inheritance
-
DevicePairingRequestedEventArgs
- Inherited Members
- Extension Methods
Properties
PairingKind
Gets the kind of pairing associated with this pairing event.
public DevicePairingKinds PairingKind { get; }
Property Value
Pin
Gets the pin associated with a pairing request.
public uint Pin { get; }
Property Value
Methods
Accept()
Accepts a PairingRequested event and pairs the device with the application.
public void Accept()
Accept(int)
Accepts a PairingRequested event and pairs the device with the application. Requires a passkey for pairing purposes.
public void Accept(int passkey)
Parameters
passkey
intThe pass key for pairing.
AcceptWithPasswordCredential(PasswordCredential)
Accepts a PairingRequested event and pairs the device with the application when a user name and password is required for pairing purposes.
public void AcceptWithPasswordCredential(PasswordCredential password)
Parameters
password
PasswordCredentialThe password credential.