I have a project which requires 2 boards (ESP32 in this case) as a client / server or tag / anchor. The boards are the same, just running different code.
Any search seems to give solutions for same main.cpp targeting multiple different boards.
I would like these all in the same project ideally, so that they are all in the same github repo - is there an example or link to how to do this.
so either want structure as
.git include src main_client.cpp main_svr.cpp
include src client main.cpp server main.cpp
what is the best solution to achieve this please to be able to build and upload to each board in turn