-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Wifi UPDATES #143
Wifi UPDATES #143
Conversation
Updated to use master and v4.3-beta1 esp-idf Added three static methods that return strings for ip address, netmask and gateway
Going to bed - not sure why its failing (the pull_request). The code compiles and runs on my project. |
Probably because CI runs with an older version of IDF. I'll try to get around to make an update to that. |
Didn't have time to finish it before work, but at least I sorted out some issues with the Dockerfile. I'll likely continue with it this afternoon. Was thinking it may be possible to have the image pull the latest master so that all PRs always builds against that. |
I've pushed a new docker image built using the master branch of IDF as of today. Sadly it still fails:
Maybe this file needs to be included? https://github.com/espressif/esp-idf/blob/178b122c145c19e94ac896197a3a4a9d379cd618/components/esp_netif/include/esp_netif_types.h#L104 |
Added the include esp_netif_types.h but didn't fix the problem. I did not need this include "esp_netif_types.h" when I built my project with the forked Smooth library... Strange |
in my modified version of Wifi class I am using event information for getting the ip_info structure. In order to do this I used the header |
Could there be a new setting in sdkconfig that needs to be enabled? CI
builds uses one from 9 months ago.
…On Fri, 5 Mar 2021, 17:56 enelson1001, ***@***.***> wrote:
Added the include esp_netif_types.h but didn't fix the problem. I did not
need this include "esp_netif_types.h" when I built my project with the
forked Smooth library... Strange
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAU2LLHPTCB47CNZWGZH46LTCEELTANCNFSM4YUTGLOQ>
.
|
In my project sdkconfig I have My sdkconfig
The forked Smooth repo
|
Yeah, don't include files from folders named private.
|
My project sdkconfig has a lot of changes compared to sdkconfig in the Smooth fork. Do you want me to push my sdkconfig? |
|
Never mind mock-idf/components has esp_netif. |
Too late in the night to check now, but I realized now that I didn't check if it was the Linux or esp32 builds that failed. Perhaps it is the mocks that needs some update. |
I will try and update the mock-idf to include what is missing. One question in Wif.cppp I am using a new method from esp-idf called esp_ip4addr_ntoa() which returns a pointer to char array that hold the address as a string. So in the mock-idy do I rewrite this method in c++ to perform the same function? |
Yes, at least enough such that calling it and possibly using the return value, doesn't cause errors or invalid memory access. |
Well I am a lot closer now after major surgery to mock-idf. This is my last error from running ./CI/build_test.sh
|
Yes, I can imagine that there were some changes needed to catch up with IDF. linux_unit_tests is a project which should be built and run in CI, https://github.com/PerMalmberg/Smooth/blob/master/CI/build_test.sh#L34 Are there no errors prior to that line? |
|
It tries to run the unit test application it built in a previous step inside the docker container. |
I tried running your fork of Smooth, but it seems you haven't pushed the updated idf-mock yet? |
I pushed all my changes to my fork. Can you try again. |
|
I've figured you what goes wrong, but not yet why. For whatever reason the complied binaries are deleted whenever cmake/ninja is run for the next project. This is a new behavior, hence why CI breaks. |
Hopefully the change I just made solves it. |
Seems it did fix it :) |
Yes, I ran the test also and no errors. Thank YOU |
Next thing to tackle is the SPI and SDCard. Do you want me to open up another "open issue" to discuss or just continue in this pull request. |
Probably best to keep it separate. Lets get this one cleaned up and merged. |
Updated to use master and v4.3-beta1 esp-idf
Added three static methods that return strings for ip address, netmask and gateway