1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-09-28 22:15:23 +08:00

use the new function to compute protocol services supported rather than building one

This commit is contained in:
Joel Bender 2015-09-15 00:37:19 -04:00
parent da236c0486
commit b54610f099

View File

@ -80,6 +80,14 @@ try:
# make a sample application
this_application = SampleApplication(this_device, args.ini.address)
if _debug: _log.debug(" - this_application: %r", this_application)
# get the services supported
services_supported = this_application.get_services_supported()
if _debug: _log.debug(" - services_supported: %r", services_supported)
# let the device object know
this_device.protocolServicesSupported = services_supported.value
_log.debug("running")