Метод | Описание | |
---|---|---|
CallFunctionAsync ( String functionName, String arg ) : Task |
Calls the function asynchronous.
|
|
FlashExampleAppAsync ( String exampleId ) : Task |
Flashes the example application asynchronous.
|
|
FlashKnownAppAsync ( String appName ) : Task |
Flashes a known application to a device.
|
|
GetVariableValueAsync ( String variable ) : Task |
Gets the variable value asynchronous for the provided variable name.
|
|
GetVariableValueAsync ( Particle.Variable variable ) : Task |
Gets the variable value asynchronous for the provided variable.
|
|
RefreshAsync ( ) : Task |
Refreshes the device from the cloud.
|
|
RenameAsync ( String newName ) : Task |
Renames the Device.
|
|
UnclaimAsync ( ) : Task |
Unclaims the Device asynchronous.
|
Метод | Описание | |
---|---|---|
ParseFunctions ( Newtonsoft.Json.Linq.JArray arr ) : void |
Parses the functions.
|
|
ParseObject ( Newtonsoft.Json.Linq.JObject obj ) : void |
Parses the provided JObject into a ParticleDevice
|
|
ParseVariables ( Newtonsoft.Json.Linq.JObject obj ) : void |
Parses the variables.
|
|
ParticleDevice ( |
Initializes a new instance of the ParticleDevice class.
|
Метод | Описание | |
---|---|---|
getVariableType ( JToken type ) : VariableType |
Gets the type of the variable. if the type does not match a known type returns VariableType.String
|
|
parseBooleanValue ( JToken token ) : bool | ||
parseDateTimeValue ( JToken token ) : DateTime? | ||
parseIntValue ( JToken token ) : int | ||
parseNullableIntValue ( JToken token ) : int? | ||
parseStringValue ( JToken token ) : String |
public CallFunctionAsync ( String functionName, String arg ) : Task |
||
functionName | String | Name of the function. |
arg | String | The argument. |
Результат | Task |
public FlashExampleAppAsync ( String exampleId ) : Task |
||
exampleId | String | The example identifier. This can be found at build.particle.io |
Результат | Task |
public FlashKnownAppAsync ( String appName ) : Task |
||
appName | String | Name of the application. |
Результат | Task |
public GetVariableValueAsync ( String variable ) : Task |
||
variable | String | The variable. |
Результат | Task |
public GetVariableValueAsync ( Particle.Variable variable ) : Task |
||
variable | Particle.Variable | The variable. |
Результат | Task |
protected ParseFunctions ( Newtonsoft.Json.Linq.JArray arr ) : void | ||
arr | Newtonsoft.Json.Linq.JArray | The arr. |
Результат | void |
protected ParseObject ( Newtonsoft.Json.Linq.JObject obj ) : void | ||
obj | Newtonsoft.Json.Linq.JObject | The object. |
Результат | void |
protected ParseVariables ( Newtonsoft.Json.Linq.JObject obj ) : void | ||
obj | Newtonsoft.Json.Linq.JObject | The object. |
Результат | void |
protected ParticleDevice ( |
||
cloud | The cloud. | |
obj | Newtonsoft.Json.Linq.JObject | The JSon object to parse |
Результат | Newtonsoft.Json |
public RenameAsync ( String newName ) : Task |
||
newName | String | The new name. |
Результат | Task |