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

dump the contents of the APDU before attempting to decode it (#254)

This commit is contained in:
Joel Bender
2019-03-07 21:40:10 -05:00
parent 627bdcc2ba
commit f56446be05

View File

@@ -588,6 +588,7 @@ class DiscoverConsoleCmd(ConsoleCmd):
# do something for success
elif iocb.ioResponse:
apdu = iocb.ioResponse
if _debug: DiscoverConsoleCmd._debug(" - apdu: %r", apdu)
# should be an ack
if not isinstance(apdu, ReadPropertyACK):
@@ -723,6 +724,7 @@ class DiscoverConsoleCmd(ConsoleCmd):
# do something for success
if iocb.ioResponse:
apdu = iocb.ioResponse
if _debug: DiscoverConsoleCmd._debug(" - apdu: %r", apdu)
# should be an ack
if not isinstance(apdu, ReadPropertyMultipleACK):