class Pipeline
Description:
Establishes a pipeline connected with Onboard device or Payload device to transmit data. Uses connect
to create a pipeline. disconnect
can be invoked to destroy the data transmission channel and disconnect from the Onboard device or Payload device.
Class Members:
method getId
Description:
The identification number of the pipeline connected with the Payload or the Onboard device.
Return:
int An int value of pipeline id.
method getType
TransmissionControlType getType ()
Description:
Transmission processing type.
Return:
method getDeviceType
PipelineDeviceType getDeviceType ()
Description:
Device type connected.
Return:
method writeData
int writeData (byte [] data, int offset, int length)
Description:
Data to be sent. 1 KB data size is recommended.
byte[] data The data needs to be sent. int offset The start offset in the data. int length The number of bytes to write.
Return:
int If the return code greater than 0 it is the length of data written otherwise it is the error code.
method readData
int readData (byte [] buff, int offset, int length)
Description:
Read data from the pipeline.
byte[] buff The buffer into which the data is read. int offset The start offset in the array buff at which the data is written. int length The maximum number of bytes to read.
Return:
int If the return code greater than 0 it is the length of data read otherwise it is the error code.
enum TransmissionControlType
enum TransmissionControlType
Description:
Defines pipeline transmission control type.
Enum Members:
STABLEGuarantees delivery of data and that packets will be delivered in the order they were sent. PUSHThis transmission control type does not provide guaranteed delivery and a datagram packet may become corrupt or lost in transit. Suitable for time-sensitive transmission.
Class Members:
enum PipelineDeviceType
Description:
The enum is used to represent the pipeline device type.
Enum Members:
ON_BOARDOnboard device. Please check the developer website: https://developer.dji.com/onboard-sdk/. PAYLOADPayload device. Please check the developer website: https://developer.dji.com/payload-sdk/. UNKNOWNUnknown.
Class Members: