# 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

###### method getPipelineState

    PipelineState getPipelineState()

Package: | dji.v5.manager.mop

##### Description:

Gets the connection state of the pipeline.

##### Return:

PipelineState | Returns the connection state of the pipeline.

method
getId

###### 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:

int | Returns the pipeline ID.

method
getTransmissionControlType

###### method getTransmissionControlType

    TransmissionControlType getTransmissionControlType()

Package: | dji.v5.manager.mop

##### Description:

Gets the transmission control type of pipeline.

##### Return:

TransmissionControlType | Returns the transmission control type of pipeline.

method
getPipelineDeviceType

###### method getPipelineDeviceType

    PipelineDeviceType getPipelineDeviceType()

Package: | dji.v5.manager.mop

##### Description:

Gets the device type of pipeline.

##### Return:

PipelineDeviceType | Returns the device type of pipeline.

method
writeData

###### method writeData

    DataResult writeData(byte[] data)

Package: | dji.v5.manager.mop

##### Description:

Send data to the PSDK device through the pipeline.

##### Input Parameters:

byte[] data | The data to be sent.

##### Return:

DataResult | Return the sending result.

method
readData

###### method readData

    DataResult readData(byte[] data)

Package: | dji.v5.manager.mop

##### Description:

Read data from PSDK device through pipeline.

##### Input Parameters:

byte[] data | The data to be read.

##### Return:

DataResult | Return the reading result.

×

## Search Mobile SDK Document

{{searchCount}} Results

- ### {{{(item.highlights && item.highlights.title) || item.title}}}

  {{{(item.highlights && item.highlights.content[0]) || item.title}}}

Load More
Loading...
Not Found