Question about the API/socket

Carlos Colque2 years ago

HI, it's just a question .. in the webpage appear that api/socket it could show the next json:

{
  "devices": [...],
  "positions: [...],
  "events": [...]
}

but when I execute the api/socket, I only have the positions and I don't see the devices and events... that is correct?

Anton Tananaev2 years ago

Correct. You won't always have everything. In fact most of the time it's only one of those things.

Carlos Colque2 years ago

Is there a way I can control that ?, I mean, how could I get only the devices.

Anton Tananaev2 years ago

You can use regular devices API if you want to get a current snapshot.