Cpp Programming in ESP-IDF
-
- Posts: 1
- Joined: Wed Nov 30, 2022 9:04 am
Cpp Programming in ESP-IDF
Can I convert all ESP-IDF examples to C++.If it is yes then what I have to do?
Re: Cpp Programming in ESP-IDF
Yes, they could be converted. I'm not sure I understand the question about what would need to be done. You would need to comprehend what the example is doing and write a C++ program that does what the example does. You can call the ESP-IDF API functions from C++. If you need to provide a call-back, FreeRTOS task/timer, or an event handler, you can use a static class method if desired.
Re: Cpp Programming in ESP-IDF
There's also the esp-idf-cxx component that provides c++ interfaces for things like events, timers, gpio, i2c and spi.
https://github.com/espressif/esp-idf-cxx
https://github.com/espressif/esp-idf-cxx
Who is online
Users browsing this forum: No registered users and 65 guests