APIs for Mobile-Onboard SDK Communication. More...

#include <dji_mobile_device.hpp>

Public Member Functions

 MobileDevice (Vehicle *vehicle=0)
 
Vehicle * getVehicle () const
 
void setVehicle (Vehicle *value)
 
void sendDataToMSDK (uint8_t *data, uint8_t len)
 sending data from OSDK to MSDK More...
 
void setFromMSDKCallback (VehicleCallBack callback, UserData userData=0)
 set callback to receive data from MSDK More...
 

Static Public Member Functions

static void getDataFromMSDKCallback (Vehicle *vehiclePtr, RecvContainer recvFrame, UserData userData)
 

Public Attributes

VehicleCallBackHandler fromMSDKHandler
 

Detailed Description

APIs for Mobile-Onboard SDK Communication.

This class implements the Onboard SDK side of Data Transparent Transmission functionality. You must implement APIs available in the Mobile SDK to have full functionality on both directions of the pipeline.

Member Function Documentation

◆ sendDataToMSDK()

void MobileDevice::sendDataToMSDK ( uint8_t *  data,
uint8_t  len 
)

sending data from OSDK to MSDK

Supported Platforms : M210V2, M300
Parameters
datasent data
lenlength of data

◆ setFromMSDKCallback()

void MobileDevice::setFromMSDKCallback ( VehicleCallBack  callback,
UserData  userData = 0 
)

set callback to receive data from MSDK

Supported Platforms : M210V2, M300
Parameters
callbackcallback to receive data
userDatauser data to be passed in callback

The documentation for this class was generated from the following files: