Skip to content
Warren Gay edited this page Nov 17, 2015 · 4 revisions

dhcp

bool ESP8266::dhcp(bool on)

This method issues the "AT+CWDHCP=2,1" (on) or "AT+CWDHCP=2,0" (!on) command to the ESP device. True is returned if the command returns OK.

join_ap

bool ESP8266::ap_join(const char *ap,const char *passwd)

This method issues the "join access point" command to the ESP device. The command provided is of the form:

AT+CWJAP="ssid","passwd"

The function returns true if the command succeeded.

set_ap_mac

bool ESP8266::set_ap_mac(const char *mac_addr)

This command issues the ESP command:

AT+CIPAPMAC="new_mac_address"

to change the Access Point Mac address.

set_ap_addr

bool ESP8266::set_ap_addr(const char *ip_addr);

This method issues the ESP command:

AT+CIPAP="new_ip_addr"

to set the new IP address of the Access Point.

set_autoconn

bool set_autoconn(bool on)

This method issues the ESP coommand:

AT+CWAUTOCONN=1
or
AT+CWAUTOCONN=0

to enable "auto connect" or not, respectively of the Access Point.

Clone this wiki locally