I am using BLS4160 connected to Ethernet.
I know that if I want static IP I have to set compiler macro
#define TCPCONFIG 1
and if DHCP
#define TCPCONFIG 7
But this is compile time setting, is it possible to use either static or DHCP dynamically in a compiled bin ?
So that I could start the program with some configuration setting 1 or 7
I would like to have a single compiled bin that can be configured depending the environment, if DHCP is available or not.