v1.7.0 to add support to ESP32-S3

### Releases v1.7.0

1. Add support to new `ESP32-S3` 
2. Add `LittleFS` support to `ESP32-C3`
3. Use ESP32-core's LittleFS library instead of Lorol's LITTLEFS library for v2.0.0+
This commit is contained in:
Khoi Hoang
2022-02-11 23:39:39 -05:00
committed by GitHub
parent 8a211da406
commit f95cc9ee90
28 changed files with 259 additions and 123 deletions

View File

@@ -65,8 +65,8 @@ const char* password = "your_pass";
#include <WiFi.h>
#endif
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.6.0"
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1006000
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.7.0"
#define ASYNC_HTTP_REQUEST_GENERIC_VERSION_MIN 1007000
// To be included only in main(), .ino with setup() to avoid `Multiple Definitions` Linker Error
#include <AsyncHTTPRequest_Generic.h> // https://github.com/khoih-prog/AsyncHTTPRequest_Generic
@@ -77,7 +77,7 @@ AsyncHTTPRequest request;
Ticker ticker;
Ticker ticker1;
void heartBeatPrint(void)
void heartBeatPrint()
{
static int num = 1;
@@ -113,12 +113,12 @@ void sendRequest()
}
else
{
Serial.println("Can't send bad request");
Serial.println(F("Can't send bad request"));
}
}
else
{
Serial.println("Can't send request");
Serial.println(F("Can't send request"));
}
}
@@ -128,9 +128,9 @@ void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
if (readyState == readyStateDone)
{
Serial.println("\n**************************************");
Serial.println(F("\n**************************************"));
Serial.println(request->responseText());
Serial.println("**************************************");
Serial.println(F("**************************************"));
request->setDebug(false);
}
@@ -141,20 +141,22 @@ void setup()
// put your setup code here, to run once:
Serial.begin(115200);
while (!Serial);
delay(200);
Serial.println("\nStarting AsyncHTTPRequest_ESP using " + String(ARDUINO_BOARD));
Serial.print(F("\nStarting AsyncHTTPRequest_ESP using ")); Serial.println(ARDUINO_BOARD);
Serial.println(ASYNC_HTTP_REQUEST_GENERIC_VERSION);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("Connecting to WiFi SSID: " + String(ssid));
Serial.print(F("Connecting to WiFi SSID: ")); Serial.println(ssid);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
Serial.print(F("."));
}
Serial.print(F("\nAsyncHTTPRequest @ IP : "));