I think additional it should be args=ON (or OFF) instead of value=
Thank you gentlemen
The & is correct but I am still getting argument problems.
If I change the HTTP line to
HTTP = "
https://api.particle.io/v1/devices/...oken=bec1daef10297164128006b00xxxxd8cf1bdee2b"
I have removed the toggle (which is important as it is the function name in the Particle module) then it does not give an error, the log shows
Jobdone
JobName = Job1, Success = true
Results...{
"id": "3b002b000axxxxxx38383138",
"name": "turkey_trochee",
"last_app": null,
"last_ip_address": "81.148.236.158",
"last_heard": "2016-07-28T16:28:42.593Z",
"product_id": 6,
"connected": true,
"platform_id": 6,
"cellular": false,
"status": "normal",
"variables": {},
"functions": [
"toggle"
]
The Particle manual shows how an API should be sent
The API request will look something like this:
POST /v1/devices/{DEVICE_ID}/toggle
# EXAMPLE REQUEST IN TERMINAL
# Core ID is 0123456789abcdef
# Your access token is 123412341234
curl
https://api.particle.io/v1/devices/0123456789abcdef/toggle \
-d access_token=123412341234 \
-d params=on
Can that be used to show how to to do it?