AntDeviceRequestDataPageT Method

Requests the data page.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 5.0.1.0+f38da73fd23cf61ffb5cc5e01f10a544cf32a50c
C#
public Task<MessagingReturnCode> RequestDataPage<T>(
	T page,
	byte descriptor1 = 255,
	byte descriptor2 = 255,
	byte transmissionResponse = 4,
	CommandType commandType = CommandType.DataPage,
	ushort slaveSerialNumber = 65535
)
where T : Enum

Parameters

page  T
The requested page.
descriptor1  Byte  (Optional)
The descriptor1. The default is 0xFF.
descriptor2  Byte  (Optional)
The descriptor2. The default is 0xFF.
transmissionResponse  Byte  (Optional)
The transmission response. The default is to send 4 messages.
commandType  CommandType  (Optional)
Type of the command. The default is DataPage.
slaveSerialNumber  UInt16  (Optional)
The slave serial number. The default is 0xFFFF.

Type Parameters

T
The data page enumeration of the derived ANT device class.

Return Value

TaskMessagingReturnCode
Status of the request.

Exceptions

ArgumentExceptionInvalid data page requested.

See Also