DJI Mobile SDK Documentation

      class Pipeline

      class Pipeline
      Package:dji.v5.manager.mop
      Description:

      Pipeline class, which can read and write data to the pipeline.

      Supported since MSDK 5.3.0

      Class Members:
      method getPipelineState
      PipelineState getPipelineState()
      Package:dji.v5.manager.mop
      Description:

      Gets the connection state of the pipeline.

      Return:
      PipelineStateReturns the connection state of the pipeline.
      method
      method getId
      int getId()
      Package:dji.v5.manager.mop
      Description:

      Gets the pipeline ID, MSDK and PSDK need to use the agreed pipeline ID to read and write data.

      Return:
      intReturns the pipeline ID.
      method getTransmissionControlType
      TransmissionControlType getTransmissionControlType()
      Package:dji.v5.manager.mop
      Description:

      Gets the transmission control type of pipeline.

      Return:
      TransmissionControlTypeReturns the transmission control type of pipeline.
      method getPipelineDeviceType
      PipelineDeviceType getPipelineDeviceType()
      Package:dji.v5.manager.mop
      Description:

      Gets the device type of pipeline.

      Return:
      PipelineDeviceTypeReturns the device type of pipeline.
      method
      method writeData
      DataResult writeData(byte[] data)
      Package:dji.v5.manager.mop
      Description:

      Send data to the PSDK device through the pipeline.

      Input Parameters:
      byte[] dataThe data to be sent.
      Return:
      DataResultReturn the sending result.
      method
      method readData
      DataResult readData(byte[] data)
      Package:dji.v5.manager.mop
      Description:

      Read data from PSDK device through pipeline.

      Input Parameters:
      byte[] dataThe data to be read.
      Return:
      DataResultReturn the reading result.