Suggested project layout for multiple components/roles

Hello,

what is the suggested project layout for a sensor-network consisting of multiple microcontrollers with different roles? For example a master-node, sensor-slaves and actor slaves.

  • One project per role and the shared code in a git submodule in the libs?
  • One project per role and a real library for the shared code?
  • One project for all and different env: entries with different source filters?
  • Anything else?

Thanks a lot, Jan

It depends on how much code these components have in common. In any case, this option is good

One project per role and a real library for the shared code?

You can split common code in to project’s sub-libraries and put to lib folder. See readme.txt in lib folder.