Menu

Tree [r3] /
 History

HTTPS access


File Date Author Commit
 examples 2019-07-14 tilly_2 [r3] better debug
 README.txt 2019-07-02 tilly_2 [r1] version 0.1
 common.cpp 2019-07-14 tilly_2 [r3] better debug
 common.h 2019-07-02 tilly_2 [r1] version 0.1
 config.h 2019-07-02 tilly_2 [r1] version 0.1
 keywords.txt 2019-07-02 tilly_2 [r1] version 0.1
 noipwificlient.cpp 2019-07-14 tilly_2 [r3] better debug
 noipwificlient.h 2019-07-02 tilly_2 [r1] version 0.1

Read Me

This library contains clients that can be used in arduino sketches
to update dynamic IP via No-IP service.
Update requests are executed only if the configured interval has elapsed
since last call: interval is set in minutes and
defaults to 30 (minimum is 1) like DUC.
Request are not sent if not allowed by last response status, until reset
(e.g. if 'nohost' or 'badauth' are returned by last API call).
Requests can be postponed by a full interval if not needed
(e.g. if a network server in our sketch just handled a request),
or can be forced if striclty needed
(e.g. if a lost network connection could have been caused by an IP change).

Sketch example:

#include <noipwificlient.h>

NoipWiFiClient noip;

void setup() 
{
	<code to initilize wifi..>
	
	// set timeout to 60 minutes
    noip.begin(noip_host, noip_auth, 60);
    
    // force first call
    noip.dynupdate(true);
}

void loop() 
{
	if (<postpone_condition>) {
		// postpone until next interval
		noip.postpone();
	} else {
		// exec update if 60 minutes are elapsed synce last call
		noip.dynupdate();
	}
}