Skip to content

Commit

Permalink
espat: use only AT commands that work on both ESP8266 and ESP32
Browse files Browse the repository at this point in the history
Signed-off-by: Ron Evans <[email protected]>
  • Loading branch information
deadprogram committed Jul 15, 2019
1 parent d867551 commit fe58e9b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions espat/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ const (
Disconnect = "+CWQAP"

// Set softAP configuration. This also activates the ESP8266/ESP32 to act as an access point.
// The settings will not be saved in flash memory, so they will be forgotten on next reset.
SoftAPConfigCurrent = "+CWSAP_CUR"
// On the ESP8266 the settings will not be saved in flash memory, so they will be forgotten on next reset.
// On the ESP32 the settings WILL be saved in flash memory, so they will be used on next reset.
SoftAPConfigCurrent = "+CWSAP"

// Set softAP configuration as saved in flash. This also activates the ESP8266/ESP32 to act as an
// access point. The settings will be saved in flash memory, so they will be used on next reset.
SoftAPConfigFlash = "+CWSAP_DEF"
// Set softAP configuration. This also activates the ESP8266/ESP32 to act as an access point.
// On the ESP8266 the settings will not be saved in flash memory, so they will be forgotten on next reset.
// On the ESP32 the settings WILL be saved in flash memory, so they will be used on next reset.
SoftAPConfigFlash = "+CWSAP"

// List station IP's connected to softAP
ListConnectedIP = "+CWLIF"
Expand All @@ -65,12 +67,14 @@ const (
SetStationIP = "+CIPSTA"

// Set IP address of ESP8266/ESP32 when acting as access point.
// The IP address will not be saved in flash memory, so it will be forgotten on next reset.
SetSoftAPIPCurrent = "+CIPAP_CUR"
// On the ESP8266 the IP address will not be saved in flash memory, so it will be forgotten on next reset.
// On the ESP32 the IP address WILL be saved in flash memory, so it will be used on next reset.
SetSoftAPIPCurrent = "+CIPAP"

// Set IP address of ESP8266/ESP32 when acting as access point.
// The IP address will be saved in flash memory, so they will be used on next reset.
SetSoftAPIPFlash = "+CIPAP_DEF"
// On the ESP8266 the IP address will not be saved in flash memory, so it will be forgotten on next reset.
// On the ESP32 the IP address WILL be saved in flash memory, so it will be used on next reset.
SetSoftAPIPFlash = "+CIPAP"
)

// TCP/IP commands
Expand Down

0 comments on commit fe58e9b

Please sign in to comment.