Digi IoT Library for .NET MAUI API reference

Show / Hide Table of Contents

Class DeviceUtils

Helper class used to create a Bluetooth connection interface.

Inheritance
object
DeviceUtils
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
XBeeLibrary.Core.Connection.IConnectionInterface
IDevice

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
Guid
XBeeLibrary.Core.Connection.IConnectionInterface

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 00112233AABB or 00:11:22:33:AA:BB for the address or 01234567-0123-0123-0123-0123456789AB for the GUID.

Returns
Type Description
XBeeLibrary.Core.Connection.IConnectionInterface

The connection interface of the Bluetooth device.

Exceptions
Type Condition
ArgumentException

If deviceAddress does not follow the format 00112233AABB or 00:11:22:33:AA:BB or 01234567-0123-0123-0123-0123456789AB.

See Also
XBeeLibrary.Core.Connection.IConnectionInterface
Product page More documentation Official site About Digi Contact us Support
©2023, Digi International Inc. All rights reserved.
Digi International Inc.