Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example Usage

Code Block
languagecpp
linenumberstrue
          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); 
              } 
          }

...