mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +00:00
espat: use only AT commands that work on both ESP8266 and ESP32
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
+13
-9
@@ -42,12 +42,14 @@ const (
|
|||||||
Disconnect = "+CWQAP"
|
Disconnect = "+CWQAP"
|
||||||
|
|
||||||
// Set softAP configuration. This also activates the ESP8266/ESP32 to act as an access point.
|
// 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.
|
// On the ESP8266 the settings will not be saved in flash memory, so they will be forgotten on next reset.
|
||||||
SoftAPConfigCurrent = "+CWSAP_CUR"
|
// 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
|
// Set softAP configuration. This also activates the ESP8266/ESP32 to act as an access point.
|
||||||
// access point. The settings will be saved in flash memory, so they will be used on next reset.
|
// On the ESP8266 the settings will not be saved in flash memory, so they will be forgotten on next reset.
|
||||||
SoftAPConfigFlash = "+CWSAP_DEF"
|
// 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
|
// List station IP's connected to softAP
|
||||||
ListConnectedIP = "+CWLIF"
|
ListConnectedIP = "+CWLIF"
|
||||||
@@ -65,12 +67,14 @@ const (
|
|||||||
SetStationIP = "+CIPSTA"
|
SetStationIP = "+CIPSTA"
|
||||||
|
|
||||||
// Set IP address of ESP8266/ESP32 when acting as access point.
|
// 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.
|
// On the ESP8266 the IP address will not be saved in flash memory, so it will be forgotten on next reset.
|
||||||
SetSoftAPIPCurrent = "+CIPAP_CUR"
|
// 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.
|
// 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.
|
// On the ESP8266 the IP address will not be saved in flash memory, so it will be forgotten on next reset.
|
||||||
SetSoftAPIPFlash = "+CIPAP_DEF"
|
// 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
|
// TCP/IP commands
|
||||||
|
|||||||
Reference in New Issue
Block a user