code: def decode_bridged_message(rx_data):
      
  
      while array('B', rx_data)[5] == constants.CMDID_SEND_MESSAGE:
          rsp = create_message(constants.NETFN_APP + 1,
                               constants.CMDID_SEND_MESSAGE, None)
          decode_message(rsp, rx_data[6:])
          check_completion_code(rsp.completion_code)
          rx_data = rx_data[7:-1]
  
          if len(rx_data) < 6:
              break
      return rx_data
docs: Decode a (multi-)bridged command.
  
      rx_data: the received message as bytestring
  
      Returns the decoded message as bytestring