Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
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. |
Résultat | Task |
public FlashExampleAppAsync ( String exampleId ) : Task |
||
exampleId | String | The example identifier. This can be found at build.particle.io |
Résultat | Task |
public FlashKnownAppAsync ( String appName ) : Task |
||
appName | String | Name of the application. |
Résultat | Task |
public GetVariableValueAsync ( String variable ) : Task |
||
variable | String | The variable. |
Résultat | Task |
public GetVariableValueAsync ( Particle.Variable variable ) : Task |
||
variable | Particle.Variable | The variable. |
Résultat | Task |
protected ParseFunctions ( Newtonsoft.Json.Linq.JArray arr ) : void | ||
arr | Newtonsoft.Json.Linq.JArray | The arr. |
Résultat | void |
protected ParseObject ( Newtonsoft.Json.Linq.JObject obj ) : void | ||
obj | Newtonsoft.Json.Linq.JObject | The object. |
Résultat | void |
protected ParseVariables ( Newtonsoft.Json.Linq.JObject obj ) : void | ||
obj | Newtonsoft.Json.Linq.JObject | The object. |
Résultat | void |
protected ParticleDevice ( |
||
cloud | The cloud. | |
obj | Newtonsoft.Json.Linq.JObject | The JSon object to parse |
Résultat | Newtonsoft.Json |
public RenameAsync ( String newName ) : Task |
||
newName | String | The new name. |
Résultat | Task |