-
Notifications
You must be signed in to change notification settings - Fork 7
Command
Warren Gay edited this page Nov 17, 2015
·
4 revisions
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.
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.
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.
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.
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.