I have 2 Spark Cores and every time I was looking for a smart solution to create an interface for the Spark with buttons and information screen. Particle has the tinker app or you can attach a piece of hardware. However I wanted to have this on my iPad. So litterally my projects stuck at those moments. I searched for a way that would give me the opportunity to write my app in a very simple way. The next code in smart BASIC asks for my temperature “temp1” variable and shows it on my iPad.
COREID$ = "xxxxxxxxxxxxxxxxxx" ACCTKN$ = "xxxxxxxxxxxxxxxxxxxxxxxxxx" temp_no$ = "temp1" URL$ = "https://api.spark.io/v1/devices/"&COREID$&"/"&temp_no$&"?access_token="&ACCTKN$ HTTP URL$ GET t$ PRINT t$
I’ve published my efforts with the Spark Cores on the smart BASIC website here.
corrected some typos.