A .NET client for the SparkCore Cloud API
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");
- Copy app.config.sample in the Tests project to app.config.
- Update the access token and device id appsettings
- Flash TestFirmware.cpp from the tests project to your device.
- Build, run tests