Commando post IoT

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'
    }
})

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.