Geocache(Channel Id, IAnt Channel, ILoggerGeocache, Timeout Options) Constructor
Initializes a new instance of the Geocache class.
Definition
Namespace: SmallEarthTech.AntPlus.DeviceProfiles
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.2+fe94d33487affd796e1d786d5b5eb3d769a3361f
C#
public Geocache(
ChannelId channelId,
IAntChannel antChannel,
ILogger<Geocache> logger,
TimeoutOptions? timeoutOptions
)VB
Public Sub New (
channelId As ChannelId,
antChannel As IAntChannel,
logger As ILogger(Of Geocache),
timeoutOptions As TimeoutOptions
)C++
public:
Geocache(
ChannelId^ channelId,
IAntChannel^ antChannel,
ILogger<Geocache^>^ logger,
TimeoutOptions^ timeoutOptions
)F#
new :
channelId : ChannelId *
antChannel : IAntChannel *
logger : ILogger<Geocache> *
timeoutOptions : TimeoutOptions -> GeocacheParameters
- channelId ChannelId
- The channel identifier.
- antChannel IAntChannel
- Channel to send messages to.
- logger ILoggerGeocache
- Logger to use.
- timeoutOptions TimeoutOptions
- Timeout options.
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.