Has anyone tried to create a flow in Node Red with their Spark core? The http post connects to my device but returns a value of -1. I am using the following url.
I think the problem you’re running into is ‘analogread’ is a spark.function, so it’s expecting a http POST request, and I’m guessing that http request is a GET.
@lightx - Have you tried a function where you pass the pin number? I can get the variable returned and that might be good enough for now but I was hoping to have a function to call.
@tinkerMike - the only way I found to work was to use exec since I couldn’t figure out how to pass arguments in the http request. Ive used something along the lines of