|
|
@ -474,6 +474,7 @@ public class TraccarClientFactory {
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param traccarDevice with DeviceName UniqueId, Status, Disabled LastUpdate, PositionId, GroupId
|
|
|
|
* @param traccarDevice with DeviceName UniqueId, Status, Disabled LastUpdate, PositionId, GroupId
|
|
|
|
* Model, Contact, Category, fenceIds
|
|
|
|
* Model, Contact, Category, fenceIds
|
|
|
|
|
|
|
|
* @param tenantId tentantId of the specific device
|
|
|
|
* @throws TrackerManagementDAOException Failed while add Traccar Device the operation
|
|
|
|
* @throws TrackerManagementDAOException Failed while add Traccar Device the operation
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void modifyDevice(TraccarDevice traccarDevice, int tenantId) throws TrackerManagementDAOException, ExecutionException, InterruptedException {
|
|
|
|
public void modifyDevice(TraccarDevice traccarDevice, int tenantId) throws TrackerManagementDAOException, ExecutionException, InterruptedException {
|
|
|
@ -511,8 +512,7 @@ public class TraccarClientFactory {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
addDevice(traccarDevice, tenantId);
|
|
|
|
addDevice(traccarDevice, tenantId);
|
|
|
|
} catch (TrackerAlreadyExistException e) {
|
|
|
|
} catch (TrackerAlreadyExistException e) {
|
|
|
|
String msg = "The device already exist";
|
|
|
|
log.error("The device already exist", e);
|
|
|
|
log.error(msg, e);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|