I’ve had success to date using GET and POST requests using javascript on a web page. I’m now trying to combine variables in a data string and parse the results in javascript but I’m getting an unexpected result using sprintf() in my core.
I was expecting to get a return like “{“TempAct”: 19.1 … }”, not “{“TempAct”: 19.1 …}”
Can anyone point me in the right direction?
Is there a good tutorial on sprintf() and JSON as it applies to Spark? I’ve found some good short tutorials or complex references but not a lot of examples that bridge the two.
As the value of result is string and not an object, API might want to ensure it will be parsed correctly as a string. You might test it sending value of strCore to serial console.