AntDeviceCollection Constructor

Initializes a new instance of the AntDeviceCollection class. The ANT radio is configured for continuous scan mode.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
C#
public AntDeviceCollection(
	IAntRadio antRadio,
	ILoggerFactory loggerFactory,
	int antDeviceTimeout = 2000
)

Parameters

antRadio  IAntRadio
The ANT radio interface.
loggerFactory  ILoggerFactory
Logger factory to generate type specific ILogger from. Can be null.
antDeviceTimeout  Int32  (Optional)
ANT device _timeout in milliseconds. The default is 2000 milliseconds.

Remarks

The ILoggerFactory is used to create ILoggerTCategoryName instances for discovered ANT devices. If the factory is null, the NullLoggerFactory is used and no logging is generated.

See Also