Merge pull request 'Finnished example program' (#2) from main into master
Reviewed-on: #2
This commit is contained in:
@@ -150,7 +150,6 @@ void app_main(void)
|
|||||||
|
|
||||||
ESP_ERROR_CHECK(esp_zb_platform_config(&config)); // Apply the configuration to board
|
ESP_ERROR_CHECK(esp_zb_platform_config(&config)); // Apply the configuration to board
|
||||||
|
|
||||||
// === CREATE TASK 1: LED CONTROL ===
|
|
||||||
// xTaskCreate = create a new task (mini-program that runs independently)
|
// xTaskCreate = create a new task (mini-program that runs independently)
|
||||||
xTaskCreate(led_task, // Function to run (defined above)
|
xTaskCreate(led_task, // Function to run (defined above)
|
||||||
"LED_Task", // Name for debugging (shows in task monitor)
|
"LED_Task", // Name for debugging (shows in task monitor)
|
||||||
@@ -159,7 +158,6 @@ void app_main(void)
|
|||||||
1, // Priority 1-25 (1=lowest, 25=highest priority)
|
1, // Priority 1-25 (1=lowest, 25=highest priority)
|
||||||
NULL); // Task handle (we don't need to control task later)
|
NULL); // Task handle (we don't need to control task later)
|
||||||
|
|
||||||
// === CREATE TASK 2: ZIGBEE COMMUNICATION ===
|
|
||||||
xTaskCreate(zigbee_task, // Function to run (defined above)
|
xTaskCreate(zigbee_task, // Function to run (defined above)
|
||||||
"Zigbee_Task", // Name for debugging
|
"Zigbee_Task", // Name for debugging
|
||||||
4096, // Larger stack - Zigbee needs more memory
|
4096, // Larger stack - Zigbee needs more memory
|
||||||
|
Reference in New Issue
Block a user