Geocache(ChannelId, IAntChannel, ILoggerGeocache, Int32) Constructor
Initializes a new instance of the
Geocache class.
Namespace: SmallEarthTech.AntPlus.DeviceProfilesAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+4009252dff1e4f6bcda36b6b0041486552134bc5
public Geocache(
ChannelId channelId,
IAntChannel antChannel,
ILogger<Geocache> logger,
int timeout
)
Public Sub New (
channelId As ChannelId,
antChannel As IAntChannel,
logger As ILogger(Of Geocache),
timeout As Integer
)
public:
Geocache(
ChannelId^ channelId,
IAntChannel^ antChannel,
ILogger<Geocache^>^ logger,
int timeout
)
new :
channelId : ChannelId *
antChannel : IAntChannel *
logger : ILogger<Geocache> *
timeout : int -> Geocache
Parameters
- 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.
The geocache typically broadcasts its presence at 0.5Hz. The geocache changes its message rate to 4Hz upon
receiving a request such as
RequestPinPage(UInt32). Set the timeout appropriate for your use case.