Building multiple boards with different config

Hi,

I have a telemetry project using a Mega 2560 and have a few instances of these in different locations.

As I'm doing some bug fixes and adding new features it's getting a little tedious always changing the MAC and IP addresses in the sketch for each one and then uploading the new code.

Is there a better way to build / write a project that has a configuration that can be scaled up so it's easier to manage?

Any advice welcome.

Thanks

Save it to the EEPROM. That way you can use the identical program but each physical device can have a different address or different configuration.

EEPROM is not erased when programming so you can even upload a new version of your program and the device still remembers what it was.

Thanks MorganS, that's an interesting idea that I'm going to take further. I think it should work well for me.

Mind you, you probably will need to have a separate sketch to load the data into the EEPROM, perhaps by typing it into the Serial Monitor (and using the same sketch to verify).