XBee C# library API reference

Show / Hide Table of Contents

Class XBee

Helper class used to create a bluetooth connection interface.

Inheritance
System.Object
XBee
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: XBeeLibrary.Xamarin
Assembly: XBeeLibrary.Xamarin.dll
Syntax
public class XBee

Methods

| Improve this Doc View Source

CreateConnectionInterface(IDevice)

Retrieves a bluetooth connection interface for the provided device.

Declaration
public static IConnectionInterface CreateConnectionInterface(IDevice device)
Parameters
Type Name Description
Plugin.BLE.Abstractions.Contracts.IDevice device

Bluetooth device to connect to.

Returns
Type Description
IConnectionInterface

The connection interface of the Bluetooth device.

See Also
IConnectionInterface
Plugin.BLE.Abstractions.Contracts.IDevice
| Improve this Doc View Source

CreateConnectionInterface(Guid)

Retrieves a bluetooth connection interface for the device with the provided GUID.

Declaration
public static IConnectionInterface CreateConnectionInterface(Guid deviceGuid)
Parameters
Type Name Description
System.Guid deviceGuid

The Bluetooth device GUID.

Returns
Type Description
IConnectionInterface
See Also
System.Guid
IConnectionInterface
| Improve this Doc View Source

CreateConnectionInterface(String)

Retrieves a bluetooth connection interface for the device with the provided GUID.

Declaration
public static IConnectionInterface CreateConnectionInterface(string deviceAddress)
Parameters
Type Name Description
System.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
IConnectionInterface

The connection interface of the Bluetooth device.

Exceptions
Type Condition
System.ArgumentException

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

See Also
IConnectionInterface
Product page More documentation Official site About Digi Contact us Support
©2019-2022, Digi International Inc. All rights reserved.
Digi International Inc.