DirectCommand GetTypeModeAsync Method LEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

Get the type and mode of the device attached to the specified port

Namespace: Lego.Ev3.Core
Assembly: Lego.Ev3.Desktop (in Lego.Ev3.Desktop.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Task<byte[]> GetTypeModeAsync(
	InputPort port
)

Return Value

Type: OnlineTask  OnlineByte  
2 bytes, index 0 being the type, index 1 being the mode
See Also