Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface NetworkAPI mbed-rtos mbed
Fork of NetRelais by
main.cpp
- Committer:
- NegativeBlack
- Date:
- 2012-07-17
- Revision:
- 7:c4ea5b5a7218
- Parent:
- 6:33b57f606f2b
- Child:
- 8:d55cac25e637
File content as of revision 7:c4ea5b5a7218:
#include "mbed.h"
#include "EthernetInterface.h"
#include "NetworkAPI/ip/address.hpp"
int
main()
{
EthernetInterface interface;
interface.init();
interface.connect();
printf("IP Address is %s\n\r", interface.getIPAddress());
network::ip::Address address;
address.fromHostname("www.google.nl");
printf("Network address %s\n", address.toString().c_str());
return 0;
}
