Skip to content

kareem613/SharpSpark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpSpark

A .NET client for the SparkCore Cloud API

Usage

SparkClient client = new SparkClient("[access token]", "[device id]");

Device Info

SparkDevice deviceInfo = client.GetDevice();

Variables and Functions

SparkVariableResult temperatureResult = client.GetVariable("temperature");
SparkFunctionResult brewResult = client.ExecuteFunction("brew","202","230");

Convenience Methods

decimal temperature = client.GetVariableReturnValue<decimal>("temperature");
int returnValue = client.ExecuteFunctionReturnValue("brew","202","230");

Compiling & Getting Tests to Run

  1. Copy app.config.sample in the Tests project to app.config.
  2. Update the access token and device id appsettings
  3. Flash TestFirmware.cpp from the tests project to your device.
  4. Build, run tests

About

A .NET client for the SparkCore Cloud API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published