ESP8266 Developer Zone The Official ESP8266 Forum 2015-11-20T13:30:39+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1360 2015-11-20T13:30:39+08:00 2015-11-20T13:30:39+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1360&p=4682#p4682 <![CDATA[Re: Looping in a simple task]]> Statistics: Posted by kolban — Fri Nov 20, 2015 1:30 pm


]]>
2015-11-09T13:39:05+08:00 2015-11-09T13:39:05+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1360&p=4497#p4497 <![CDATA[Looping in a simple task]]>
Here is my application:

Code:

#include "esp_common.h"

void taskConnect(void *pData) {
   printf("Hello from taskConnect!\n");
   int count = 0;
   while(1) {
      count++;
      printf("count - %d\n", count);
      vTaskDelay(10);
   }
}

void user_init(void) {
   printf("SDK version:%s\n", system_get_sdk_version());
   printf("user_init running ...\n");
   wifi_set_opmode(NULL_MODE);
   xTaskCreate(taskConnect, "taskConnect", 200, NULL, 3, NULL);
}

Statistics: Posted by kolban — Mon Nov 09, 2015 1:39 pm


]]>