Skip to content
New issue

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

0014-espressif_esp32_send_data as components meets the "TICKE.H" error was encountered #182

Open
sgzx8480 opened this issue Dec 28, 2023 · 6 comments

Comments

@sgzx8480
Copy link

Dear author,the purpose of this post is that I ran into an issue with 0014-espressif_esp32_send_data as a component and the "TICKE.H" couldn't find. I would like to ask you what is the dependency of "TICKE.H" and what Require file need to be added to the CMakelists.txt.
Looking forward to your reply.

@MathewHDYT
Copy link
Contributor

MathewHDYT commented Dec 28, 2023

Could you please attack the full aforementioned error message. Because I'm relatively sure this is not an internal library issue.

We do not utilize or attempt to include any header file called "TICKE.H".

@sgzx8480
Copy link
Author

Thank you for your replay.
I'm sorry, the error file is "Ticker.h"
The specific error information is as follows:
../components/mqtt_component/src/Callback_Watchdog.h:12:10: fatal error: Ticker.h: No such file or directory
12 | #include <Ticker.h>
| ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subco
The "Ticker.h" is located on line 12 of the./src/Callback_Watchdog.h file.

@MathewHDYT
Copy link
Contributor

MathewHDYT commented Dec 28, 2023

Are you using the Espressif Framework, because from the error message it sems like you are on Arduino instead?

If you are using Arduino than you should not use the espressif_ example, but instead the esp32_esp8266 examples.

@sgzx8480
Copy link
Author

sgzx8480 commented Dec 28, 2023

That's what I use the Espressif Framework,but I ran into the problem of missing #include <Ticker.h>.
If instead of using the component approach I use the main function approach , this issues will not arise.

@MathewHDYT
Copy link
Contributor

MathewHDYT commented Dec 28, 2023

Thats what is weird, because Ticker is only required if the internal esp_timer component does not exist. Which it should.

For now can you go into the Configuration.h and simply hardcode THINGSBOARD_USE_ESP_TIMER as 1.

@MathewHDYT
Copy link
Contributor

@sgzx8480 Ah wait I might have an idea, perhaps the required esp_timer component is external and not included. Could you simply hardcode THINGSBOARD_USE_ESP_TIMER as 1 in the Configuration.h file. Because if my assumption is correct you should get an error that the esp_timer is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants