I’ve got the basic functions working. Read values and execute functions. I’ve used it to make a Tinker client. Works like a charm for all analog and digital pins.
If there’s interest I can separate it from my project solution and put it up on git. Maybe package it up as a nuget package.
Ok. Should be good to go now.
You need to flash the TestFirmware.cpp to run the SparkClientTests.
You need to flash the Tinker app firmware to run the TinkerClientTests.
Has anyone tried this with Windows Phone 8.1? I compiled the DLL, tried the same exact code with Windows Desktop app and Windows Phone 8.1. On the Windows app it works great, but from the Windows Phone 8.1 app, I get an error
"An exception of type ‘System.IO.FileNotFoundException’ occurred in SharpSpark.DLL but was not handled in user code"
when calling " var result = CloudPost(functionKey, args);"
any ideas why this might be happening?
I thought maybe it’s an internet connection error, but i check for internet connectivity before calling the function.
Hello @kareem613!
Will you please if you can attach a simple example of the library.
For example reading and writing variable and function by using a windows form. So I need a simple example just a few functions.
There are many files I do not know how to incorporate in the project. Which files should should be included in the project? Whether they could make a dll?
I’m emebedded / HW guy
I do not know much about C #. I’m still a beginner …
I hope you will help me.
can anyone here tell me how to use this or link me to a place that can. I’m in dire need of it currently as windows phone is the only device i can write apps for at the moment.
@MasterVizz & @developer_bt, the library comes with some test programs and nice readme that should get you started quite nicely.
Once you have built and tried these test app, you might be able to ask some more focused questions.
A general “help, I don’t understand” is a bit too foggy to help you in any useful way.
An exception of type’System.IO.FileNotFoundException’ occured in SharpSpark.dll but was not handled in user code
Additional information: Could not load file or assembly ‘System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ or one of its dependencies. The system cannot find the file specified.
this error occured when trying to perform this line of code:
var result = CloudPost(functionKey, args);
it should be noted that i am trying to do this in a windows phone 8 app. the error is the same as the one mrabie had above, unfortunately he never explained fully what was needed to be done to fix it.