app_main() and main()

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

app_main() and main()

Postby djoshi » Wed Jan 19, 2022 10:27 pm

Hi All

This seems to be trivial questions, what is the purpose of app_main() and main() in ESP-IDF project?

I am aware of main() in C, but i have seen a project example(esp-azure) with both app_main() and main(). Why is this?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: app_main() and main()

Postby WiFive » Wed Jan 19, 2022 10:51 pm

Probably just copied from azure sdk and wasn't removed

djoshi
Posts: 53
Joined: Wed Jan 12, 2022 9:59 pm

Re: app_main() and main()

Postby djoshi » Wed Jan 19, 2022 11:00 pm

Ok, great that's fine i can remove it.

Thanks

Who is online

Users browsing this forum: No registered users and 125 guests