AntDeviceCollection Constructor
Initializes a new instance of the
AntDeviceCollection class. The ANT radio is configured
for continuous scan mode.
Namespace: SmallEarthTech.AntPlusAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 5.0.1.0+f38da73fd23cf61ffb5cc5e01f10a544cf32a50c
public AntDeviceCollection(
IAntRadio antRadio,
ILoggerFactory loggerFactory,
int antDeviceTimeout = 2000
)
Public Sub New (
antRadio As IAntRadio,
loggerFactory As ILoggerFactory,
Optional antDeviceTimeout As Integer = 2000
)
public:
AntDeviceCollection(
IAntRadio^ antRadio,
ILoggerFactory^ loggerFactory,
int antDeviceTimeout = 2000
)
new :
antRadio : IAntRadio *
loggerFactory : ILoggerFactory *
?antDeviceTimeout : int
(* Defaults:
let _antDeviceTimeout = defaultArg antDeviceTimeout 2000
*)
-> AntDeviceCollection
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.
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.
The
StartScanning method must be called to initialize the ANT radio for continuous scan mode and setup
reception of ANT messages.