Edit

Share via


ArduinoBoard.GetSystemVariable Method

Definition

Overloads

GetSystemVariable(SystemVariable, Int32)

Queries the given system variable.

GetSystemVariable(SystemVariable, Int32, Int32)

Queries the given system variable.

GetSystemVariable(SystemVariable, Int32)

Queries the given system variable.

public bool GetSystemVariable (Iot.Device.Arduino.SystemVariable variableId, out int value);
member this.GetSystemVariable : Iot.Device.Arduino.SystemVariable * int -> bool
Public Function GetSystemVariable (variableId As SystemVariable, ByRef value As Integer) As Boolean

Parameters

variableId
SystemVariable

The variable to query

value
Int32

Receives the value

Returns

True on success, false otherwise (value not supported, etc. Check the log output)

Exceptions

There was an error sending the command

Applies to

GetSystemVariable(SystemVariable, Int32, Int32)

Queries the given system variable.

public bool GetSystemVariable (Iot.Device.Arduino.SystemVariable variableId, int pinNumber, out int value);
member this.GetSystemVariable : Iot.Device.Arduino.SystemVariable * int * int -> bool
Public Function GetSystemVariable (variableId As SystemVariable, pinNumber As Integer, ByRef value As Integer) As Boolean

Parameters

variableId
SystemVariable

The variable to query

pinNumber
Int32

The pin number to use (-1 if not applicable for the given parameter)

value
Int32

Receives the value

Returns

True on success, false otherwise (value not supported, etc. Check the log output)

Exceptions

There was an error sending the command

Applies to