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 DDNS_NoIP
main.cpp
00001 #include "mbed.h" 00002 #include "EthernetInterface.h" 00003 #include "DDNSClient.h" 00004 00005 uint8_t mac_addr[6] = {0x00, 0x08, 0xdc, 0x12, 0x34, 0x45}; 00006 //const char ip_addr[] = "192.168.0.123"; 00007 //const char mask_addr[] = "255.255.255.0"; 00008 //const char gateway_addr[] = "192.168.0.1"; 00009 00010 00011 00012 int main (void) 00013 { 00014 char buf[1024]; 00015 int n=0; 00016 printf("Wait a second...\r\n"); 00017 EthernetInterface eth; 00018 //eth.init(mac_addr, ip_addr, mask_addr, gateway_addr); //Use Static 00019 eth.init(mac_addr); //Use Dynamic 00020 eth.connect(); 00021 printf("WIZwiki-W7500 IP Address is %s\r\n", eth.getIPAddress()); 00022 00023 DDNSClient noip; 00024 00025 noip.checkIp(); 00026 00027 noip.userSetNoIP("cmlja3kwODQ6cmlja3kxMjM=", "ricky084.ddns.net"); 00028 00029 noip.updateNoIP(); 00030 00031 while(true) { 00032 00033 } 00034 } 00035 00036
Generated on Tue Jul 26 2022 01:54:06 by
1.7.2