Avatar

View Devices from multiple Databases

0

How would I go about showing data from two devices that are in two different databases?

Elliot Slater

Please sign in to leave a comment.

4 comments

0
Avatar

Create a login in both databases.

Connect to each database individually.

Use the SDK to get the device from each database.

?

Michael Head 0 votes
0
Avatar

That would seem logical although the sdk uses tokens and I am unsure if I can have multiple tokens. It would seem a bit much to log in to the databases for every single call.

I would like to get some feedback from Geotab on this.  I have a client that has multiple branches each with its own database right now but they would like the ability to share specific trucks with central dispatch. 

Elliot Slater 0 votes
0
Avatar

Hi Elliot,

Michael is correct, you can connect to the databases individually. A user may have multiple active session id's.

Steve

Steve Hansen 0 votes
0
Avatar

In your code, create different "api" objects for each connection and you will be fine.

Michael Head 0 votes