9 years, 7 months ago.

change IP address

I posted a similar issue earlier, I want to change the ip address of my mbed microcontroller. whenever i tried to change the ip, the mbed crashes with the lights of death:

 EthernetInterface eth;
    printf("init 1\r\n");
    eth.init(myip,"255.255.255.0",mygate);
    printf("discon\r\n");
    eth.disconnect();
    printf("init 2\r\n");
    eth.init(myip,"255.255.255.0",mygate);
    printf("after init 2\r\n");

the print out is:

init 1
discon
init 2

My first guess is that eth.init should call tcpip_init only the first time it is called.

Can any one help me please.

Thanks in advance

Be the first to answer this question.