Establishes a pipeline connected with Onboard device or Payload device to transmit data. Uses
to create a pipeline.
can be invoked to destroy the data transmission channel and disconnect from the Onboard device or Payload device.
disconnect Class Members:
The identification number of the pipeline connected with the Payload or the Onboard device. Return:
int An int value of pipeline id.
TransmissionControlType getType () Description:
Transmission processing type. Return:
PipelineDeviceType getDeviceType () Description:
Device type connected. Return:
int writeData ( byte data, int offset, int length) Description:
Data to be sent. 1 KB data size is recommended. Input Parameters:
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.
int readData ( byte buff, int offset, int length) Description:
Read data from the pipeline. Input Parameters:
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 Description:
Defines pipeline transmission control type. Enum Members:
STABLE Guarantees delivery of data and that packets will be delivered in the order they were sent. PUSH This 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:
The enum is used to represent the pipeline device type. Enum Members:
ON_BOARD Onboard device. Please check the developer website: https://developer.dji.com/onboard-sdk/. PAYLOAD Payload device. Please check the developer website: https://developer.dji.com/payload-sdk/. UNKNOWN Unknown. Class Members: