Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 2 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