Problem using the API

Tracker10 months 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 Tananaev10 months ago

How long does the process take?

Tracker10 months 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 Tananaev10 months ago

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

Tracker10 months 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 Tananaev10 months 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.