mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
e50hx: use the new bacnetutil class
This commit removes functionality that is now present in the bacnetutil class. This simplifies the driver considerably. The examples were modified to reflect the renaming of some utility functions in bacnetutil. Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
@ -74,8 +74,8 @@ int main(int argc, char **argv)
|
||||
// sensor->setDebug(true);
|
||||
|
||||
cout << endl;
|
||||
cout << "Device Description: " << sensor->getDescription() << endl;
|
||||
cout << "Device Location: " << sensor->getLocation() << endl;
|
||||
cout << "Device Description: " << sensor->getDeviceDescription() << endl;
|
||||
cout << "Device Location: " << sensor->getDeviceLocation() << endl;
|
||||
cout << endl;
|
||||
|
||||
// update and print a few values every 5 seconds
|
||||
|
@ -58,8 +58,10 @@ public class E50HX_Example
|
||||
// sensor.setDebug(true);
|
||||
|
||||
System.out.println();
|
||||
System.out.println("Device Description: " + sensor.getDescription());
|
||||
System.out.println("Device Location: " + sensor.getLocation());
|
||||
System.out.println("Device Description: "
|
||||
+ sensor.getDeviceDescription());
|
||||
System.out.println("Device Location: "
|
||||
+ sensor.getDeviceLocation());
|
||||
System.out.println();
|
||||
|
||||
// update and print a few values every 5 seconds
|
||||
@ -84,7 +86,6 @@ public class E50HX_Example
|
||||
System.out.println();
|
||||
Thread.sleep(5000);
|
||||
}
|
||||
|
||||
// ! [Interesting]
|
||||
}
|
||||
}
|
||||
|
@ -63,8 +63,8 @@ sensor.initMaster(defaultDev, 38400, 1000001, 2);
|
||||
// sensor.setDebug(true);
|
||||
|
||||
console.log("");
|
||||
console.log("Device Description:", sensor.getDescription());
|
||||
console.log("Device Location:", sensor.getLocation());
|
||||
console.log("Device Description:", sensor.getDeviceDescription());
|
||||
console.log("Device Location:", sensor.getDeviceLocation());
|
||||
console.log("");
|
||||
|
||||
// update and print a few values every 5 seconds
|
||||
|
@ -69,8 +69,8 @@ sensor.initMaster(defaultDev, 38400, 1000001, 2)
|
||||
|
||||
# output the serial number and firmware revision
|
||||
print
|
||||
print "Device Description:", sensor.getDescription()
|
||||
print "Device Location:", sensor.getLocation()
|
||||
print "Device Description:", sensor.getDeviceDescription()
|
||||
print "Device Location:", sensor.getDeviceLocation()
|
||||
print
|
||||
|
||||
# update and print available values every second
|
||||
|
Reference in New Issue
Block a user