From 86880853a4f0397bfffdfe9543fff95847d50e1e Mon Sep 17 00:00:00 2001 From: Damien Picard Date: Fri, 27 Nov 2020 17:08:51 +0100 Subject: [PATCH] correctly unpack bbmd info for WhoIsRouterForeign.py --- samples/WhoIsRouterForeign.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/WhoIsRouterForeign.py b/samples/WhoIsRouterForeign.py index af77f400..c378378e 100755 --- a/samples/WhoIsRouterForeign.py +++ b/samples/WhoIsRouterForeign.py @@ -34,9 +34,9 @@ @bacpypes_debugging class WhoIsRouterApplication(BIPNetworkApplication): - def __init__(self, *args): + def __init__(self, *args, **kwargs): if _debug: WhoIsRouterApplication._debug("__init__ %r", args) - BIPNetworkApplication.__init__(self, *args) + BIPNetworkApplication.__init__(self, *args, **kwargs) def request(self, adapter, npdu): if _debug: WhoIsRouterApplication._debug("request %r %r", adapter, npdu) @@ -120,8 +120,8 @@ def main(): # make a simple application this_application = WhoIsRouterApplication( args.ini.address, - Address(args.ini.foreignbbmd), - int(args.ini.foreignttl), + bbmdAddress=Address(args.ini.foreignbbmd), + bbmdTTL=int(args.ini.foreignttl) ) if _debug: _log.debug(" - this_application: %r", this_application)