LegacyTelogisServiceListDevices Method |
Namespace: Telogis.API
/* Output snippet: Dave's Truck (vCore_G3) Verizon Connect VCore is connected Josh's Truck (vCore_G3) Verizon Connect VCore is connected*/ // get *all* of our units Unit[] units = myService.FindUnits(null, null); foreach (Unit u in units) { // output the unit name and type Console.WriteLine("{0} ({1})", u.Name, u.Type); // get an array of devices for the unit Device[] devices = myService.ListDevices(u.ID); foreach (Device d in devices) { Console.WriteLine("\t{0} is {1}", d.Name, d.Connected ? "connected" : "disconnected"); } Console.WriteLine(""); }