Class DeviceUtils
Helper class used to create a Bluetooth connection interface.
Inherited Members
Namespace: DigiIoTDigiIoT.MauiDevices
Assembly: DigiIoT.Maui.dll
Syntax
public class DeviceUtils
Methods
CreateConnectionInterface(IDevice)
Retrieves a bluetooth connection interface for the provided device.
Declaration
public static IConnectionInterface CreateConnectionInterface(IDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| IDevice | device | Bluetooth device to connect to. |
Returns
| Type | Description |
|---|---|
| XBeeLibrary.Core.Connection.IConnectionInterface | The connection interface of the Bluetooth device. |
See Also
CreateConnectionInterface(Guid)
Returns a Bluetooth connection interface for the device with the provided GUID.
Declaration
public static IConnectionInterface CreateConnectionInterface(Guid deviceGuid)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | deviceGuid | The Bluetooth device GUID. |
Returns
| Type | Description |
|---|---|
| XBeeLibrary.Core.Connection.IConnectionInterface |
See Also
CreateConnectionInterface(string)
Returns a Bluetooth connection interface for the device with the provided GUID.
Declaration
public static IConnectionInterface CreateConnectionInterface(string deviceAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| string | deviceAddress | The address or GUID of the Bluetooth device. It must follow the
format |
Returns
| Type | Description |
|---|---|
| XBeeLibrary.Core.Connection.IConnectionInterface | The connection interface of the Bluetooth device. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If |