...
Example Usage
Code Block | ||||
---|---|---|---|---|
| ||||
static void AppTaskStart (void *p_arg) { HTTPs_INSTANCE *p_instance; HTTPs_ERR https_err; AppInit_TCPIP(); App_Init_FS(); HTTPs_Init(DEF_NULL, &http_err); if (https_err == HTTPs_ERR_NONE) { p_instance = HTTPs_InstanceInit(&HTTPs_CfgInstance_0, &HTTPs_TaskCfgInstance_0, &https_err); if (https_err == HTTPs_ERR_NONE) { HTTPs_InstanceStart(p_instance, &https_err); if (https_err == HTTPs_ERR_NONE) { printf("HTTP server instance #0 successfully started.\n\r"); } else { printf("HTTP server instance #0 start failed.\n\r"); } } } while (DEF_YES) { OSTimeDlyHMSM(0, 0, 0, 100); } } |
...