AntDevice Class
Base class for all ANT devices.
Namespace: SmallEarthTech.AntPlusAssembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 6.0.2+4dd3b18a61cb7a7c9070bf010b9a118f4696f0c4
public abstract class AntDevice : ObservableObject,
IDisposable
Public MustInherit Class AntDevice
Inherits ObservableObject
Implements IDisposable
public ref class AntDevice abstract : public ObservableObject,
IDisposable
[<AbstractClassAttribute>]
type AntDevice =
class
inherit ObservableObject
interface IDisposable
end
- Inheritance
- ObservableObject AntDevice
- Derived
- More Less
- Implements
- IDisposable
An important consideration is an appropriate timeout to determine if a device has gone offline - battery
has died, device has been turned off, device is out of range of receiver, ane/or the RF environment the
device and receiver are operating in. Most devices broadcast at 4Hz, with the notable exception of
Geocache and
Asset Tracker.
A reasonable rule of thumb is to set the timeout at 8 messages times the channel period per second; typically
2 seconds. Consult the device profile documentation at https://www.thisisant.com for a device and consult the channel
period defined for master devices.
| ChannelCount | This 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. |
| ChannelId | Gets the channel identifier. |
| DeviceImageStream | Gets the device image stream from the embedded resource image associated with the derived device class. |
| Offline | Gets a value indicating whether this AntDevice is offline. |
| DeviceWentOffline | Occurs when no messages have been received from the device within the specified timeout duration. |
| _logger | The logger for derived classes to use. |