Other Parts Discussed in Thread: ENERGIA
Hi all!
I started a tcp server on my TM4C1294. I want to change the ip of ethernet and restart my server with the new ip. For this reason, I tried the below code...
<
Serial.println("\nserver rebooting-1");
server.available().stop();
Serial.println("\nserver rebooting-2");
delay(100);
Ethernet.begin(mac, ip_arr, dns_arr, gw_arr, mask_arr);
delay(100);
Serial.println("\nserver rebooting-3");
server.begin();
>
Unfortunately, the program stuck in "Ethernet.begin".
Is there anything in order to restart the ethernet and tcp server with new ip?