-
-
Notifications
You must be signed in to change notification settings - Fork 696
ESP-IDF wifi example does not compile due to missing definitions #576
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
Comments
Since I was copying pasting code within a older project, I had forgotten that I changed main.c to main.cpp. The compiler was expecting cplusplus conventions for the c code. Interestingly, when I wrapped it using extern "C", it was still not working. Changing the file back to main.c got it to compile again. I'll have to check as to why extern "C" wasn't working a bit later after exploring these wifi options for a bit. Closing. |
Reporting back again. I seem to have incidentally mixed things up and this issue still exists I believe. When the example for smartconfig wasn't working, I moved onto compiling the basic Wifi AP example instead which is not what is posted here. The two methods esp_smartconfig.h
|
Hi @RoscoeTheDog ! What version of the ESP-IDF you pulled the example from? |
Closing as no further info provided. |
Uh oh!
There was an error while loading. Please reload this page.
I have been reviewing some examples for how to configure wifi in my project. The smartconfig featured seems nice but I wanted to test it before integrating it. I copied the main example from espressif's github repo and tried compiling it. It seems to be missing references to
SC_TYPE_ESPTOUCH_V2
andesp_smartconfig_get_rvd_data
.Now, it is my understanding that the examples in the main espressif esp-idf repository and the platformIO espressif32 repository may be different because platformIO uses a different build system. It seems that platformIO's espressif32 branch does not include an example for connecting to an AP using purly the esp-idf framework, and the examples provided use the Arduino framework instead which is not supported on the esp32s2-saola1 board.
I know there is a feature branch of the esp32s2-saola that works with the Arduino framework.. But during my earlier testing it seems there are still some unresolved bugs such as the Hardware Timers API not functioning. And this prevents me from using it with my application. Additionally, you cannot seem to mix the featured branch with the esp-idf branch and use the two together, as the board definition and support for this does not exist and does not compile either.
I am not sure why why these two declarations are missing from the appropriate headers. Is smartconfig supported under platformIO's branch? Could we get an example or something?
Here is the example code pulled from espressif32's repo:
The text was updated successfully, but these errors were encountered: