1
0
mirror of https://github.com/esp8266/Arduino.git synced 2026-01-06 05:22:30 +03:00

Added API to set static IP and DNS server

This commit is contained in:
Mimmo La Fauci
2013-03-21 09:24:07 +01:00
parent 9c30c73c2b
commit dc3102d2f4
13 changed files with 15997 additions and 15682 deletions

View File

@@ -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: Static DNS server configuration
*/
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: Static DNS server configuration
* 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: Static DNS server configuration
* param gateway: Static gateway configuration
* param subnet: Static subnet mask configuration
*/
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
*