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
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
Plugin.BLE.Abstractions.Contracts.IDevice
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 of the Bluetooth device. It must follow the
format |
Returns
Type | Description |
---|---|
IConnectionInterface | The connection interface of the Bluetooth device. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If |