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:
parent
da236c0486
commit
b54610f099
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user