AntDeviceRequestDataPageT Method

Requests the data page.

Definition

Namespace: SmallEarthTech.AntPlus
Assembly: SmallEarthTech.AntPlus (in SmallEarthTech.AntPlus.dll) Version: 4.0.0.0+4009252dff1e4f6bcda36b6b0041486552134bc5
C#
public Task<MessagingReturnCode> RequestDataPage<T>(
	T page,
	uint ackWaitTime = 500,
	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.
ackWaitTime  UInt32  (Optional)
Time in milliseconds to wait for the device acknowledgment. The default is 500ms.
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