bacpypes icon indicating copy to clipboard operation
bacpypes copied to clipboard

Unsetting the expecting reply bit

Open JoelBender opened this issue 3 years ago • 1 comments

Discussed in https://github.com/JoelBender/bacpypes/discussions/471

When unsetting the expecting reply bit in a ReadPropertyMultipleRequest like this:

        request = ReadPropertyMultipleRequest(listOfReadAccessSpecs=readAccessSpecList)
        request.pduExpectingReply = 0
        request.pduDestination = Address(address)
        iocb = IOCB(request)
        deferred(self.request_io, iocb)

The bit is turned back on by the time the packet hits the wire.

JoelBender avatar Sep 22 '22 21:09 JoelBender

There is a gist here that shows the bit correctly follows the request, if it is turned off at the application then it remains off through the stack.

JoelBender avatar Sep 23 '22 01:09 JoelBender