1.1.3.14 SYS_APPDEBUG_Open Function
C
SYS_MODULE_OBJ SYS_APPDEBUG_Open (SYS_APPDEBUG_CONFIG *cfg)
Summary
Open an instance of the System App Debug service.
Description
This function initializes the instance of the System App Debug Service.
Parameters
cfg - Configuration with which the App Debug Service needs to be opened ##Returns
Returns:If successful, returns a valid handle to an object. Otherwise, it returns SYS_MODULE_OBJ_INVALID.
Example
SYS_APPDEBUG_CONFIG g_AppDebugServCfg; SYS_MODULE_OBJ g_AppDebugServHandle; memset(&g_AppDebugServCfg, 0, sizeof(g_AppDebugServCfg)); g_AppDebugServCfg.logLevel |= APP_LOG_ERROR_LVL; g_AppDebugServCfg.prefixString = "MY_APP"; g_AppDebugServCfg.logFlow |= 0x1; g_AppDebugServHandle = SYS_NET_Open(&g_AppDebugServCfg); if (g_AppDebugServHandle == SYS_MODULE_OBJ_INVALID) { // Handle error }
Remarks
This routine should be called everytime a user wants to open a new NET socket