def confirmation(self, apdu):
        if _debug: ClientSSM._debug("confirmation %r", apdu)

        if self.state == SEGMENTED_REQUEST:
            self.segmented_request(apdu)
        elif self.state == AWAIT_CONFIRMATION:
            self.await_confirmation(apdu)
        elif self.state == SEGMENTED_CONFIRMATION:
            self.segmented_confirmation(apdu)
        else:
            raise RuntimeError("invalid state")
This function is called by the device for all upstream messages related
dataset/ETHPy150Open JoelBender/bacpypes/py25/bacpypes/appservice.py/ClientSSM.confirmation