Custom command not working from api

Gabriele6 years ago

Hi everyone,

I have a strange problem.

If I send this command from web portal, it works flawlessly.

REQUEST
{
  "id": 0,
  "description": "Nuovo...",
  "deviceId": 33,
  "type": "custom",
  "textChannel": false,
  "attributes": {
    "data": "setdigout 0"
  }
}

If I send it via my Android app (which uses APIs), formatted in the same way, the server responds (don't mind 0/1 in setdigout, the command is the same)

RESPONSE
{
  "id": 308,
  "attributes": {
    "data": "setdigout 1"
  },
  "deviceId": 33,
  "type": "custom",
  "textChannel": false,
  "description": "Nuovo..."
}

but it seems that the command is not actually sent to device (Teltonika FMB920).

Can anyone help me out?

Thank you very much

Anton Tananaev6 years ago

Have you actually checked if it's sent or not?

beryindo6 years ago

you use async, volley or ?