Class BLED112
Provides functionality for bluegiga BLED112 dongle
Inheritance
System.Object
BLED112
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Elatec.FCT.Client.Hardware
Assembly: ElatecFCT.dll
Syntax
public class BLED112
Fields
View SourceSerialPort
Declaration
public SerialPort SerialPort
Field Value
Type | Description |
---|---|
System.IO.Ports.SerialPort |
Properties
View SourceDeviceAddress
The device BLE MAC address to search for
Declaration
public byte[] DeviceAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
Methods
View SourceConnect()
Try to connect to BLED112
Declaration
public bool Connect()
Returns
Type | Description |
---|---|
System.Boolean |
GetFieldstrenght()
Scan for BLE device with 500 ms scan time
Declaration
public double GetFieldstrenght()
Returns
Type | Description |
---|---|
System.Double | Fieldstrenght in dbm |
GetFieldstrenght(Byte[])
Scan for BLE device with 500 ms scan time for a given MAC address
Declaration
public double GetFieldstrenght(byte[] deviceAddress)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | deviceAddress | The BLE MAC address to search for |
Returns
Type | Description |
---|---|
System.Double | Fieldstrenght in dbm |
GetFieldstrenght(Byte[], UInt16)
Scan for BLE device with a given MAC address and scan time
Declaration
public double GetFieldstrenght(byte[] deviceAddress, ushort scanTime)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | deviceAddress | The BLE MAC address to search for |
System.UInt16 | scanTime | Scan time |
Returns
Type | Description |
---|---|
System.Double | Fieldstrenght in dbm |
GetFieldstrenght(UInt16)
Scan for BLE device with a given scan time
Declaration
public double GetFieldstrenght(ushort scanTime)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | scanTime |
Returns
Type | Description |
---|---|
System.Double | Fieldstrenght in dbm |
GetMAC(UInt16)
Scan for all MAC addresses
Declaration
public List<string> GetMAC(ushort scanTime)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | scanTime |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<System.String> |