First commit
Dependencies: EthernetInterface FXAS21002 FXOS8700 NetworkAPI mbed-rtos mbed
main.cpp
- Committer:
- NegativeBlack
- Date:
- 2012-07-17
- Revision:
- 6:33b57f606f2b
- Parent:
- 5:01f6c3e112af
- Child:
- 8:d55cac25e637
File content as of revision 6:33b57f606f2b:
#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; }