-
Notifications
You must be signed in to change notification settings - Fork 5
ESP8266
Henry Crute edited this page Jan 21, 2015
·
5 revisions
##The newer ESP-03
##The older ESP-V091
###Using the function queue
system_os_task(function_name, priority, queue, queue_length);- The queue is an array of type os_event_t
- The queue length is the size of the array
- The priority is the unique priority ID when entering the queue (0 is the highest priority)
- The function name is the name of the function that executes
After calling the task function, it executes the function once and is remembered by the queue;
Subsequent calling of this function called function_name is done by
system_os_post(priority, 0, event_argument);The event argument is something you will use as you pass it in to your function_name. If you don't need an event argument, then you pass in 0

