Interface ITrignoBtManager
Interface for the BT manager
Inherited Members
Namespace: DelsysAPI.Contracts
Assembly: DelsysAPI.dll
Syntax
public interface ITrignoBtManager : IManager
Properties
Components
A list of all connected sensors.
Declaration
List<SensorTrignoBt> Components { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<SensorTrignoBt> |
ScanTimeout
Time to scan for components (currently does not work)
Declaration
int ScanTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
AddDeviceIDFilter(String)
Adds a filter to device discovery to further discriminate what sensors to connect.
Declaration
void AddDeviceIDFilter(string filter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filter | A string that will be searched for in the device name. |
AllowPeripheralDevice(String)
Use this to add peripheral devicse that will be detected in a scan and connected to automatically. Acquiring data, reading its characteristics, and so on must be implemented using the underlying Plugin.BLE API.
Declaration
void AllowPeripheralDevice(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
ClearDeviceIDFilter()
Removes all filters from device discovery
Declaration
void ClearDeviceIDFilter()
DisallowPeripheralDevice(String)
Use this to remove a peripheral devicse that was previously allowed.
Declaration
void DisallowPeripheralDevice(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
DisconnectComponentAsync(Component)
Disconnects a sensor and resets it.
Declaration
Task<bool> DisconnectComponentAsync(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | Component to disconnect. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |
IdentifyComponentAsync(Component)
Puts the sensor into a state where the LED blinks white. Intended for physically identifying sensors.
Declaration
Task<bool> IdentifyComponentAsync(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | Component to put into identify state. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |
IdleComponentAsync(Component)
Puts the sensor into the default state. Intended for exiting the identify state when it's used.
Declaration
Task<bool> IdleComponentAsync(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | Component to put into idle state. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Boolean> |
QueryBatteryComponentAsync(Component)
Retrieve the percentage battery voltage of the component.
Declaration
Task<float? > QueryBatteryComponentAsync(Component component)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | Component to query battery percentage of. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Nullable<System.Single>> |
RemoveDeviceIDFilter(String)
Removes the filter from device discovery which was added earlier through AddDeviceIDFilter
Declaration
void RemoveDeviceIDFilter(string filter)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filter | A string that will be removed from the filter. |