aboutsummaryrefslogtreecommitdiff
path: root/libraries/WiFi/WiFi.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-04-03 13:51:04 +0200
committerCristian Maglie <c.maglie@bug.st>2013-04-03 13:51:04 +0200
commitee90e68e86dd61d86f5d17b69080338328765b22 (patch)
treee620c0edc2690ab789b665e567910640597aa6fe /libraries/WiFi/WiFi.h
parent0ecdc5ebc96ad4c7c548c438a03d9ce00679db8b (diff)
parentf50c307be280dc6ece9e70c43b301c1db36291a0 (diff)
Merged 1.0.5
Merge remote-tracking branch 'arduino/master' into ide-1.5.x Conflicts: app/src/processing/app/Base.java build/shared/revisions.txt hardware/arduino/avr/cores/arduino/malloc.c hardware/arduino/cores/arduino/avr-libc/malloc.c hardware/arduino/cores/arduino/malloc.c todo.txt
Diffstat (limited to 'libraries/WiFi/WiFi.h')
-rw-r--r--libraries/WiFi/WiFi.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/libraries/WiFi/WiFi.h b/libraries/WiFi/WiFi.h
index 9a86701..ef36a84 100644
--- a/libraries/WiFi/WiFi.h
+++ b/libraries/WiFi/WiFi.h
@@ -59,6 +59,50 @@ public:
*/
int begin(char* ssid, const char *passphrase);
+ /* Change Ip configuration settings disabling the dhcp client
+ *
+ * param local_ip: Static ip configuration
+ */
+ void config(IPAddress local_ip);
+
+ /* Change Ip configuration settings disabling the dhcp client
+ *
+ * param local_ip: Static ip configuration
+ * param dns_server: IP configuration for DNS server 1
+ */
+ void config(IPAddress local_ip, IPAddress dns_server);
+
+ /* Change Ip configuration settings disabling the dhcp client
+ *
+ * param local_ip: Static ip configuration
+ * param dns_server: IP configuration for DNS server 1
+ * param gateway : Static gateway configuration
+ */
+ void config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway);
+
+ /* Change Ip configuration settings disabling the dhcp client
+ *
+ * param local_ip: Static ip configuration
+ * param dns_server: IP configuration for DNS server 1
+ * param gateway: Static gateway configuration
+ * param subnet: Static Subnet mask
+ */
+ void config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet);
+
+ /* Change DNS Ip configuration
+ *
+ * param dns_server1: ip configuration for DNS server 1
+ */
+ void setDNS(IPAddress dns_server1);
+
+ /* Change DNS Ip configuration
+ *
+ * param dns_server1: ip configuration for DNS server 1
+ * param dns_server2: ip configuration for DNS server 2
+ *
+ */
+ void setDNS(IPAddress dns_server1, IPAddress dns_server2);
+
/*
* Disconnect from the network
*