OpenSDK  V4.2.0
Functions
Initialize OPEN SDK

Functions

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_InitLib (const char *szAuthAddr, const char *szPlatform, const char *szAppId)
 Initialize the library, support setting the system IP address. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FiniLib ()
 Anti-initialize the library. More...
 
OPENSDK_API void CALLBACK OpenSDK_SetConfigInfo (ConfigKey iKey, const int iValue)
 Global configuration information, according to ConfigKey configuration. More...
 
OPENSDK_API void CALLBACK OpenSDK_SetPlatformAddr (const char *szPlatform)
 The platform address is set up, and the address of the overseas platform is reset back. The platform address is reset by calling this interface. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAppID (const char *szAppId)
 Set APP ID. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAccessToken (const char *szAccessToken)
 Set AccessToken. More...
 

Detailed Description

Function Documentation

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_FiniLib ( )

Anti-initialize the library.

Returns
Return 0 on success, -1 on failure
See also
OpenSDK_InitLib()
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_InitLib ( const char *  szAuthAddr,
const char *  szPlatform,
const char *  szAppId 
)

Initialize the library, support setting the system IP address.

Parameters
[in]szAuthAddrDomain name authentication: the system authenticate the center address, the default address is: https://openauth.ezvizlife.com.
[in]szPlatformSystem domain: the system authenticate the center address, the default address is: https://open.ezvizlife.com.
[in]szAppIdAppKey applied from the system
Returns
Return 0 on success, -1 on failure
See also
OpenSDK_FiniLib()
Note
Call this API before calling any other API
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAccessToken ( const char *  szAccessToken)

Set AccessToken.

Returns
Return 0 on success, -1 on failure
See also
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_SetAppID ( const char *  szAppId)

Set APP ID.

Returns
Return 0 on success, -1 on failure
See also
OPENSDK_API void CALLBACK OpenSDK_SetConfigInfo ( ConfigKey  iKey,
const int  iValue 
)

Global configuration information, according to ConfigKey configuration.

Parameters
[in]iKeyConfigKey, Configuration type
[in]szAppIdConfiguration value, when key=CONFIG_DATA_UTF8, value=1 means platform data output use UTF-8 when key=CONFIG_OPEN_STREAMTRANS, value=1 means The output of the stream data is transferred to the package for video storage when key=CONFIG_CLOSE_P2P, value=1 means close the P2P
Returns
See also
OPENSDK_API void CALLBACK OpenSDK_SetPlatformAddr ( const char *  szPlatform)

The platform address is set up, and the address of the overseas platform is reset back. The platform address is reset by calling this interface.

See also