Ant Device Collection 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: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.4+3bc433b476ad11fc6896cfd0bd783d60504dc315
C#
public AntDeviceCollection(
IAntRadio antRadio,
ILoggerFactory loggerFactory,
int antDeviceTimeout = 2000
)VB
Public Sub New (
antRadio As IAntRadio,
loggerFactory As ILoggerFactory,
Optional antDeviceTimeout As Integer = 2000
)C++
public:
AntDeviceCollection(
IAntRadio^ antRadio,
ILoggerFactory^ loggerFactory,
int antDeviceTimeout = 2000
)F#
new :
antRadio : IAntRadio *
loggerFactory : ILoggerFactory *
?antDeviceTimeout : int
(* Defaults:
let _antDeviceTimeout = defaultArg antDeviceTimeout 2000
*)
-> AntDeviceCollectionParameters
- 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.
The StartScanning method must be called to initialize the ANT radio for continuous scan mode and setup
reception of ANT messages.