Payload Info
This is the header file for "psdk_product_info.c", defining the structure and (exported) function prototypes.
Function
function PsdkProductInfo_SetAlias
Function: Set an alias | product:all |
Set an alias that satisfies the condition for PSDK application or product. if the alias is exist, it will be displayed in DJI Pilot.
NOTE
- Still need to pass in correct PSDK APP name that is obtained from DJI SDK developer website to PsdkCore_Init() interface. The PSDK APP name will be used to bind or verification.
- Alias will be effective after a while, and the max value is 1s.
T_PsdkReturnCode PsdkProductInfo_SetAlias(const char *productAlias);
productAlias:Pointer to product alias string, and alias end with '\0'. The max length of the string is 31. If length of alias string is greater than 31, alias string will be truncated and passed in.
Return
The details for the return code please refer to:PsdkErrorCode