UnknownDevice Class

This class supports unknown devices.

Definition

Namespace: SmallEarthTech.AntPlus.DeviceProfiles
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 7.0.0+09c2d7a7f0bf2c05495d6305ac56abb150641a86
C#
public class UnknownDevice : AntDevice
Inheritance
ObservableObject    AntDevice    UnknownDevice

Constructors

UnknownDevice(ChannelId, IAntChannel, ILoggerUnknownDevice, TimeoutOptions) Initializes a new instance of the UnknownDevice class.
UnknownDevice(ChannelId, IAntChannel, ILoggerUnknownDevice, Int32) Initializes a new instance of the UnknownDevice class.

Properties

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)
DataPages Gets the collection of data pages received from the unknown device.
DeviceImageStreamGets the device image stream from the embedded resource image associated with the derived device class.
(Overrides AntDeviceDeviceImageStream)
OfflineGets a value indicating whether this AntDevice is offline.
(Inherited from AntDevice)

Methods

Dispose Releases the resources used by the current instance of the class.
(Inherited from AntDevice)
OnUnknownDataPageReceived(Byte) Raises the UnknownDataPageReceived event with the provided raw data page bytes.
(Inherited from AntDevice)
OnUnknownDataPageReceivedTEnum(Int32, Byte) Raises the UnknownDataPageReceived event with the provided raw data page bytes and includes the data page index in the log.
(Inherited from AntDevice)
ParseParses the specified data page.
(Overrides AntDeviceParse(Byte))
RequestDataPageTRequests the data page.
(Inherited from AntDevice)
SendExtAcknowledgedMessageSends an acknowledged message to the ANT device.
(Inherited from AntDevice)
ToString Returns a string representation of the current derived AntDevice.
(Overrides AntDeviceToString)

Events

DeviceWentOfflineOccurs when no messages have been received from the device within the specified timeout duration.
(Inherited from AntDevice)
UnknownDataPageReceived Occurs when an unrecognized data page is received and provides the raw page bytes to subscribers.
(Inherited from AntDevice)

Fields

_loggerThe logger for derived classes to use.
(Inherited from AntDevice)
CollectionLock The collection lock.

See Also