device added by api not show online

cristianormoraes5 years ago

I'm trying to add a new device by webapi:

{name="mycar",uniqueid="123456"}

The device was added but dont turn online, if I remove and add manually the device is turn online.

After post a new device, I need to call other method in webapi ?

Anton Tananaev5 years ago

No.

Ernesto Vallejo5 years ago

You must be missing something in your api method.

cristianormoraes5 years ago

I dont know, I sent name and uniqueid, after post the traccar show the device but device don't turn online. If I remove and add by myself , the devide turn online instantly.

There are some way to get what's going wrong?

Is a brand new installation of traccar.

Ernesto Vallejo5 years ago

Inspect Web App network calls when adding a device. That will show you exactly what data is being sent to api for device registration. Then implement identically at your webapi end.