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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Dumb newbie question. How do I print my mbed's IP address?
If I do something along these lines:
struct IpAddr myip;
....
myip = eth.getIp(); pc.printf("Interface is up, local IP is %s\n", inet_ntoa(myip));
I get compiler errors about the unknown function inet_ntoa.
What's the easiest way of printing out the mbed's IP address?
Thanks.