Question about the API/socket

Carlos Colquea year 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 Tananaeva year ago

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

Carlos Colquea year ago

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

Anton Tananaeva year ago

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