Problem using the API

Trackera year ago

I have a separate app to add devices automatically, the method used is POST with api/devices. However, when using this app, the traccar platform stops receiving data on the positions of the devices and therefore the positions are frozen until the process of adding equipment is finished. Is there any reason for this to happen? or is this the expected behavior of traccar?

Anton Tananaeva year ago

How long does the process take?

Trackera year ago

The estimated time for each device together with calculated attributes is a minute and a half, sometimes we upload up to 20 devices and it takes approximately 30 minutes.

Anton Tananaeva year ago

There are write locks, so it is expected that there might be delays if you're making some modifications.

Trackera year ago

And is there a way to remove those blocks, or would I have to make a modification in the app to add devices so that it adds each device with a separation time between another device?.

Anton Tananaeva year ago

You probably don't want to remove the blocks because that's what guarantees the consistency. It would definitely recommend time separation between large additions like that.