i want to do somthing in a loop like this code.
Code: Select all
pwm_1Task(os_event_t *events){
os_delay_us(10000);
pwm_motor1_adjust();
os_delay_us(10000);
system_os_post(pwm_1TaskPrio, 1, 1 );
};
void user_init(void)
{
at_init();
at_port_print("\r\nready\r\n");
at_cmd_array_regist(&at_custom_cmd[0], 1);
system_os_task(pwm_1Task, pwm_1TaskPrio, pwm_1TaskQueue, pwm_1TaskQueueLen);
system_os_post(pwm_1TaskPrio, 1, 1 );
pwm task working well in a loop, but wifi and AT commands not working!!!!!
generally how can i use a loop in esp8266 . for example i want to read sensors data and then adjust the light or motor rpm with that date in a Infinite loop whit wifi and AT commands working.
how can i do that????!!!