adafruit / Adafruit_CircuitPython_ESP_ATcontrol

Use the ESP AT command sent to communicate with the Interwebs
MIT License
20 stars 17 forks source link

tweaks for ESP32 compatibility #3

Closed jerryneedell closed 5 years ago

jerryneedell commented 5 years ago

just a few adjustments to allow this to work for both the esp8266 and esp32. I needed to adjust a few timeouts and the main change was for the CIPSEND prompt response. It appears that the ESP32 does not put a space after the > where the ESP8266 does. I just look for a > then flush the input buffer... seems to work

the esp32 seems to have even more retries than the esp8266, but it eventually succeeds. May need more adjustments.