Geocache Class

This class supports geocaches. This is specified in ANT+ Managed Network Document – Geocache Device Profile.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+01fc5ca24e8f030354f28ec9cef320bc5cbb0ef6
C#
public class Geocache : AntDevice
Inheritance
Object    ObservableObject    AntDevice    Geocache

Remarks

Latitude and longitude coordinates are transmitted as

Constructors

Geocache(ChannelId, IAntChannel, ILoggerGeocache, TimeoutOptions) Initializes a new instance of the Geocache class.
Geocache(ChannelId, IAntChannel, ILoggerGeocache, Int32) Initializes a new instance of the Geocache class.

Properties

AuthenticationTokenGets the authentication token.
ChannelCountThis is a multiple of the base transmission frequency. All derived classes must implement this property. See the master Channel Period specified in the specific ANT device specification for the count value.
(Overrides AntDeviceChannelCount)
ChannelIdGets the channel identifier.
(Inherited from AntDevice)
CommonDataPagesGets the common data pages.
DeviceImageStreamGets the device image stream from the embedded resource image associated with the derived device class.
(Overrides AntDeviceDeviceImageStream)
HintGets a message from the geocache device, or a next stage hint.
LastVisitTimestampGets the last visit timestamp.
NextStageLatitudeGets the next stage latitude in decimal degrees. North is positive, south is negative.
NextStageLongitudeGets the next stage longitude in decimal degrees. East is positive, west is negative.
NumberOfVisitsGets the number of visits logged.
OfflineGets a value indicating whether this AntDevice is offline.
(Inherited from AntDevice)
ProgrammingPINGets the programming PIN.
TotalPagesProgrammedGets the total pages programmed.
TrackableIdGets the trackable identifier.

Methods

DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from AntDevice)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ParseParses the specified data page.
(Overrides AntDeviceParse(Byte))
ProgramGeocachePrograms the geocache.
RequestAuthenticationRequests the authentication token from the geocache.
RequestDataPageTRequests the data page.
(Inherited from AntDevice)
RequestPinPageRequests the PIN page. Do this first before performing any other operations on the geocache.
SendExtAcknowledgedMessageSends an acknowledged message to the ANT device.
(Inherited from AntDevice)
ToStringReturns a string that represents the current object.
(Inherited from AntDevice)
UpdateLoggedVisitsUpdates the logged visits count and last visit timestamp.

Events

DeviceWentOfflineOccurs when no messages have been received from the device within the specified timeout duration.
(Inherited from AntDevice)

Fields

_loggerThe logger for derived classes to use.
(Inherited from AntDevice)
DeviceClass The device type value transmitted in the channel ID.

See Also