BlueLibs documentation

BtDevice Members

BtDevice overview

Public Static (Shared) Methods

Equals (inherited from Object) Determines whether the specified Object instances are considered equal.
ReferenceEquals (inherited from Object) Determines whether the specified Object instances are the same instance.

Public Instance Fields

OnDeviceAuthRequest (inherited from RemoteDevice) This event is fired when device requires authorization. The call back method must return string password.

Public Instance Properties

Address (inherited from RemoteDevice) String address of the device
DeviceInfo (inherited from RemoteDevice) Device details property
Name (inherited from RemoteDevice) String name for this device

Public Instance Methods

ConnectToService Connects to a service exported by the device. This will establish physical connection with the device. If authorizations is required OnDeviceAuthRequest event will be fired.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetServiceList This method returns services exported by the device.
GetServices This method only reads service UUIDs
GetType (inherited from Object) Gets the Type of the current instance.
IsAuthorized returns true if the device is already authorized
IsConnected returns true if the device is already connected
ToString (inherited from RemoteDevice) returns the name of the device

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

BtDevice Class | BlueLibs.BlueTooth Namespace