Problem using the API

Tracker2 years 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 Tananaev2 years ago

How long does the process take?

Tracker2 years 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 Tananaev2 years ago

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

Tracker2 years 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 Tananaev2 years 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.