DDNS use No-IP

Dependents:   TCPEchoClient-WIZwiki-W7500

Prerequisite

This is DDNS_NoIP Library. DDNS(Dynamic DNS) host name is linked up to the uesr's dynamic IP address. Whenever the IP changes a dynamic DNS client will send an update to No-IP with the current IP address and then No-IP propagates the DNS change to the internet within seconds.


DDNS Configuration

NoIP Site

https://www.noip.com/ /media/uploads/joon874/1.png

/media/uploads/joon874/14.png

Hardware Configuration

WIZwiki-W7500 Pin map

pin map


Software

DDNS

/* Set ID Pass and Hostname */
void userSetNoIP(char* idpass, char* hostname);

/* Upload DDNS IP Address */
void updateNoIP(void);

/* Check DDNS IP Address */
void checkIp(void);


Caution

Committer:
Ricky_Kwon
Date:
Mon Jan 25 05:11:13 2016 +0000
Revision:
1:a5d5ddadd7e7
Parent:
0:807cbe212e24
Wizwiki-W7500 DDNS

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ricky_Kwon 0:807cbe212e24 1 #ifndef DDNS_CLIENT_H
Ricky_Kwon 0:807cbe212e24 2 #define DDNS_CLIENT_H
Ricky_Kwon 0:807cbe212e24 3 #include "mbed.h"
Ricky_Kwon 0:807cbe212e24 4 /** DDNSClient class.
Ricky_Kwon 0:807cbe212e24 5 */
Ricky_Kwon 0:807cbe212e24 6 class DDNSClient{
Ricky_Kwon 0:807cbe212e24 7 public:
Ricky_Kwon 0:807cbe212e24 8 /** Create DDNSClient instance */
Ricky_Kwon 0:807cbe212e24 9 DDNSClient();
Ricky_Kwon 0:807cbe212e24 10 ~DDNSClient();
Ricky_Kwon 0:807cbe212e24 11
Ricky_Kwon 0:807cbe212e24 12 void updateNoIP(void);
Ricky_Kwon 1:a5d5ddadd7e7 13 void userSetNoIP(char* idpass, char* hostname);
Ricky_Kwon 1:a5d5ddadd7e7 14 void checkIp(void);
Ricky_Kwon 0:807cbe212e24 15 private:
Ricky_Kwon 0:807cbe212e24 16 TCPSocketConnection DDNSupdate;
Ricky_Kwon 1:a5d5ddadd7e7 17 TCPSocketConnection CheckIp;
Ricky_Kwon 0:807cbe212e24 18
Ricky_Kwon 0:807cbe212e24 19 char* noip_ddns;
Ricky_Kwon 1:a5d5ddadd7e7 20 char* check_ip;
Ricky_Kwon 0:807cbe212e24 21 int noip_ddns_port;
Ricky_Kwon 1:a5d5ddadd7e7 22 int check_ip_port;
Ricky_Kwon 1:a5d5ddadd7e7 23
Ricky_Kwon 0:807cbe212e24 24 char* _hostname;
Ricky_Kwon 0:807cbe212e24 25 char* _ip;
Ricky_Kwon 0:807cbe212e24 26 char* _idpass;
Ricky_Kwon 0:807cbe212e24 27
Ricky_Kwon 0:807cbe212e24 28 };
Ricky_Kwon 0:807cbe212e24 29 #endif