Good morning everybody.
I’m trying to send a post command to trigger an IoT device.
I’m not getting.
I’ve already tested the token and deviceID variables in other applications using the post command and it works. No react using snack.expo is not working.
fetch("https://api.spark.io/v1/devices/" + deviceID + "/led";, {
method: 'POST',
body: {
params: "on",
access_token: 'xxxxxxxxxxxxxxxxxxx'
}
})