-
Notifications
You must be signed in to change notification settings - Fork 0
/
wido_ddns.h
57 lines (50 loc) · 2.4 KB
/
wido_ddns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright (C) 2014 DFRobot
*
* wido_ddns is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or any later version.
*
* wido_ddns is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* wido_ddns is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with wido_ddns. If not, see
* <http://www.gnu.org/licenses/>.
*
*/
/*
* name: wido_ddns library
* version: 0.2
* Editor: Huosen https://github.com/HuoSen
* Date: 2014-08-21
* official website: http://www.dfrobot.com
* Description: DDNS client port for WiDo board. This library is only compatible with CC3000 chipset
*/
#include <Adafruit_CC3000.h>
#include <SPI.h>
#include "utility/debug.h"
#include "utility/socket.h"
class wido_ddns {
public:
Adafruit_CC3000 *_cc3000;
wido_ddns (Adafruit_CC3000 &my_cc3000);
char checkipData[20];
uint32_t ddnsip;
char ddns_get_strings[90];
uint32_t ddns_update_time;// = 1000*2;
uint32_t checkip;
void set_ddnsip (uint32_t myddnsip);
void set_checkip (uint32_t mycheckip);
void set_ddns_get_string (char *username, char *password, char *hostname);
void set_ddns_time (uint32_t my_time);
void ddns_update ();
};