1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

add a call() transition and tests, foreign device registration tests

This commit is contained in:
Joel Bender
2017-09-12 02:52:23 -04:00
parent 209d619994
commit 4c1ecffba6
7 changed files with 380 additions and 56 deletions

View File

@@ -493,7 +493,7 @@ class BIPForeign(BIPSAP, Client, Server, OneShotTask, DebugContents):
# check for success
if pdu.bvlciResultCode == 0:
# schedule for a refresh
self.install_task(_time() + self.bbmdTimeToLive)
self.install_task(delta=self.bbmdTimeToLive)
return
@@ -541,7 +541,7 @@ class BIPForeign(BIPSAP, Client, Server, OneShotTask, DebugContents):
self.bbmdTimeToLive = ttl
# install this task to run when it gets a chance
self.install_task(0)
self.install_task(delta=0)
def unregister(self):
"""Drop the registration with a BBMD."""