ArduinoBoard.SetSystemVariable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetSystemVariable(SystemVariable, Int32) |
Update the given system variable. |
| SetSystemVariable(SystemVariable, Int32, Int32) |
Update the given system variable. |
SetSystemVariable(SystemVariable, Int32)
Update the given system variable.
public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, value As Integer) As Boolean
Parameters
- variableId
- SystemVariable
The variable to update
- value
- Int32
The new value
Returns
True on success, false otherwise (check the log output)
Exceptions
There was a communication error
Applies to
SetSystemVariable(SystemVariable, Int32, Int32)
Update the given system variable.
public bool SetSystemVariable(Iot.Device.Arduino.SystemVariable variableId, int pinNumber, int value);
member this.SetSystemVariable : Iot.Device.Arduino.SystemVariable * int * int -> bool
Public Function SetSystemVariable (variableId As SystemVariable, pinNumber As Integer, value As Integer) As Boolean
Parameters
- variableId
- SystemVariable
The variable to update
- pinNumber
- Int32
The pin number to use, or -1 if not relevant
- value
- Int32
The new value
Returns
True on success, false otherwise (check the log output)
Exceptions
There was a communication error