This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to build multiple executable files

Hi, team

I am trying to build a system with one master and multiple slaves using the mesh SDK.
( This is similar to the light_switch example. )

At this, I want to give each slave device an ID independent of the node address.
This ID is linked to the installation location.

#####
 I will supplement it just in case.
 I do not consider managing by node address.
 Attach a sticker with an ID printed on each device.
 This will not affect the order of provisioning.
#####

The source code on the slave side is all the same, I just want to change the ID part.
This number is described in c_preprocessor_definitions.

It feels a little bother to change this value every time, build and write.
The more the number of slaves, the more!

So, when I specify a number (for example 10),
I thought that it would be a great idea to build automatically by changing the value of definition and build 10 executable files.

I checked if I could create such a batch file, but I couldn't find what I expected.
I am convinced that this idea is very useful when building a system with such a master-slave relationship, not limited to mesh.

Are there any such information or ideas within the nordic team?


Best Regards,
Wataru

Related