Return code from app_main ..?
Posted: Sat Nov 12, 2016 5:43 pm
In our current ESP-IDF, we find that app_main has the signature "int app_main(void)". This is the function we must define as the entry point into our custom logic. This now begs the question ... what if anything does the return code from app_main() mean or do?
My best guess is looking here:
https://github.com/espressif/esp-idf/bl ... art.c#L223
Which shows that no return code is used. Digging further, we find that the signature for THAT call is "extern void app_main(void)". Notice that the return from app_main() is declared as void.
Might this mean that our samples declared as returning an "int" are mistaken and they should really be defined as void types?
My best guess is looking here:
https://github.com/espressif/esp-idf/bl ... art.c#L223
Which shows that no return code is used. Digging further, we find that the signature for THAT call is "extern void app_main(void)". Notice that the return from app_main() is declared as void.
Might this mean that our samples declared as returning an "int" are mistaken and they should really be defined as void types?