I have several micro controllers that support over the air flashing of firmware, which allows me to wirelessly update the software on the controllers.
They all run a similar program, but are slightly different based on there location (their assigned IP address, their port name, and mqtt client name, for instance).
What i would like to do is enable defines in the software based on which upload port i have selected. I know that this is not in the arduino IDE but i was wondering if anyone has ever heard of software that would enable this, or if there was a way to modify the arduino compiler to accomplish this?
If anyone has any ideas i would appreciate hearing them.