We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In your main/src/core/os.c, I find some code:
main/src/core/os.c
ESP_ERROR_CHECK(esp_event_loop_create_default()); ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, &wifi_event_handler, NULL)); ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, ESP_EVENT_ANY_ID, &ip_event_handler, NULL)); ESP_ERROR_CHECK(esp_event_handler_register(SC_EVENT, ESP_EVENT_ANY_ID, &sc_event_handler, NULL));
Those mean create a default event loop, and put any event to this loop.
I want to know WIFI_EVENT, IP_EVENT, SC_EVENT mean what, I can't check with IDE "Go to definition" or "Go to declaration"
WIFI_EVENT
IP_EVENT
SC_EVENT
I google of this, I see in this website he also set same name to this position.
I want to know want it is?
The manual is this:
when I try to go to definition:
And when I learn freertos, in xTaskCreate also set pcName as string. Does those is one type thing?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi @WangShuoran, WIFI_EVENT is defined here: esp-idf/components/esp_wifi/include/esp_wifi_types.h#L610
You can also take a look at this: https://github.com/espressif/esp-idf/blob/3aeb80acb66038f14fc2a7606e7516a3e2bfa6c9/docs/en/api-reference/system/esp_event.rst
Sorry, something went wrong.
I understand, Thank you for confirmation.
the pass code is setting the esp_event_handler_instance_register needed first parameter:
esp_event_handler_instance_register
ESP_EVENT_DECLARE_BASE(WIFI_EVENT); ...... esp_event_handler_instance_register(WIFI_EVENT, ...);
Thank you again!
No branches or pull requests
In your
main/src/core/os.c
, I find some code:Those mean create a default event loop, and put any event to this loop.
I want to know
WIFI_EVENT
,IP_EVENT
,SC_EVENT
mean what, I can't check with IDE "Go to definition" or "Go to declaration"I google of this, I see in this website he also set same name to this position.
I want to know want it is?
The manual is this:
when I try to go to definition:
![image](https://user-images.githubusercontent.com/43474491/160993187-e00a86c2-6352-423d-b98e-d295f5fd4cea.png)
And when I learn freertos, in xTaskCreate also set pcName as string. Does those is one type thing?
![image](https://user-images.githubusercontent.com/43474491/160993244-a102161c-2dae-4c72-8491-e91a6477e9b6.png)
Thank you!
The text was updated successfully, but these errors were encountered: