Geocache(Channel Id, IAnt Channel, ILoggerGeocache, Int 32) Constructor
Initializes a new instance of the Geocache class.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles
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 Geocache(
ChannelId channelId,
IAntChannel antChannel,
ILogger<Geocache> logger,
int timeout
)VB
Public Sub New (
channelId As ChannelId,
antChannel As IAntChannel,
logger As ILogger(Of Geocache),
timeout As Integer
)C++
public:
Geocache(
ChannelId^ channelId,
IAntChannel^ antChannel,
ILogger<Geocache^>^ logger,
int timeout
)F#
new :
channelId : ChannelId *
antChannel : IAntChannel *
logger : ILogger<Geocache> *
timeout : int -> GeocacheParameters
- channelId ChannelId
- The channel identifier.
- antChannel IAntChannel
- Channel to send messages to.
- logger ILoggerGeocache
- Logger to use.
- timeout Int32
- Time in milliseconds before firing DeviceWentOffline. To disable the device timeout, set the timeout argument to -1 and skip setting the missedMessages argument.
Remarks
The geocache typically broadcasts its presence at 0.5Hz. The geocache changes its message rate to 4Hz upon
receiving a request such as RequestPinPage. Set the timeout appropriate for your use case.