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: WIZnetInterface mbed WIZwiki-W7500-lecture
Dependents: WIZwiki-W7500-lecture1-tcp WIZwiki-W7500-lecture2-udp WIZwiki-W7500-lecture WIZwiki-W7500-lecture1-tcp-server ... more
Fork of TCPClient_HelloWorld_WIZwiki-W7500 by
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetInterface.h" 00003 00004 int main() { 00005 00006 EthernetInterface eth; 00007 00008 uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0xFF, 0xFF, 0xFF}; 00009 eth.init(mac_addr, "192.168.0.180", "255.255.255.0", "192.168.0.1"); // USE Static IP 00010 //eth.init(mac_addr); //Use DHCP 00011 eth.connect(); 00012 printf("IP ADDR: %s\r\n",eth.getIPAddress()); 00013 printf("SUBNETMASK ADDR: %s\r\n",eth.getNetworkMask()); 00014 printf("GATE WAY ADDR: %s\r\n",eth.getGateway()); 00015 }
Generated on Wed Jul 13 2022 02:58:19 by
1.7.2
