mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
when the application sends a confirmed service downstream without an invoke ID, give it the one assigned by the lower layers of the stack
This commit is contained in:
parent
f4afe0ce19
commit
67ca3d48a2
|
@ -1314,6 +1314,12 @@ class ApplicationServiceAccessPoint(ApplicationServiceElement, ServiceAccessPoin
|
|||
# forward the encoded packet
|
||||
self.request(xpdu)
|
||||
|
||||
# if the upper layers of the application did not assign an invoke ID,
|
||||
# copy the one that was assigned on its way down the stack
|
||||
if isinstance(apdu, ConfirmedRequestPDU) and apdu.apduInvokeID is None:
|
||||
if _debug: ApplicationServiceAccessPoint._debug(" - pass invoke ID upstream %r", xpdu.apduInvokeID)
|
||||
apdu.apduInvokeID = xpdu.apduInvokeID
|
||||
|
||||
def confirmation(self, apdu):
|
||||
if _debug: ApplicationServiceAccessPoint._debug("confirmation %r", apdu)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user