Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit b691c1b

Browse files
authored
v1.1.2
### Releases v1.1.2 1. Rename _lock and _unlock to avoid conflict with [**ESP32/ESP8266 AsyncWebServer**](https://github.com/me-no-dev/ESPAsyncWebServer) library. Check [**compatibility with ESPAsyncWebServer #11**](#11) 2. Fix compiler warnings.
1 parent 87984dd commit b691c1b

31 files changed

+561
-171
lines changed

README.md

Lines changed: 97 additions & 39 deletions
Large diffs are not rendered by default.

examples/AsyncCustomHeader_STM32/AsyncCustomHeader_STM32.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031

3132
#include "defines.h"
@@ -76,6 +77,8 @@ void sendRequest(void)
7677

7778
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
7879
{
80+
(void) optParm;
81+
7982
if (readyState == readyStateDone)
8083
{
8184
Serial.println("\n**************************************");

examples/AsyncCustomHeader_STM32/defines.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2020
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
22-
Version: 1.0.2
22+
Version: 1.1.2
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.0.0 K Hoang 14/09/2020 Initial coding to add support to STM32 using built-in Ethernet (Nucleo-144, DISCOVERY, etc).
2727
1.0.1 K Hoang 09/10/2020 Restore cpp code besides Impl.h code.
2828
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
29+
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
30+
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
31+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2932
*****************************************************************************************************************************/
3033
/*
3134
Currently support

examples/AsyncDweetGet_STM32/AsyncDweetGet_STM32.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031

3132
/**
@@ -119,6 +120,8 @@ void parseResponse(String responseText)
119120

120121
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
121122
{
123+
(void) optParm;
124+
122125
if (readyState == readyStateDone)
123126
{
124127
String responseText = request->responseText();

examples/AsyncDweetGet_STM32/defines.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2020
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
22-
Version: 1.0.2
22+
Version: 1.1.2
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.0.0 K Hoang 14/09/2020 Initial coding to add support to STM32 using built-in Ethernet (Nucleo-144, DISCOVERY, etc).
2727
1.0.1 K Hoang 09/10/2020 Restore cpp code besides Impl.h code.
2828
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
29+
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
30+
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
31+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2932
*****************************************************************************************************************************/
3033
/*
3134
Currently support

examples/AsyncDweetPost_STM32/AsyncDweetPost_STM32.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031

3132
// Dweet.io POST client. Connects to dweet.io once every ten seconds, sends a POST request and a request body.
@@ -118,6 +119,8 @@ void parseResponse(String responseText)
118119

119120
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
120121
{
122+
(void) optParm;
123+
121124
if (readyState == readyStateDone)
122125
{
123126
String responseText = request->responseText();

examples/AsyncDweetPost_STM32/defines.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@
1919
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2020
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
2121
22-
Version: 1.0.2
22+
Version: 1.1.2
2323
2424
Version Modified By Date Comments
2525
------- ----------- ---------- -----------
2626
1.0.0 K Hoang 14/09/2020 Initial coding to add support to STM32 using built-in Ethernet (Nucleo-144, DISCOVERY, etc).
2727
1.0.1 K Hoang 09/10/2020 Restore cpp code besides Impl.h code.
2828
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
29+
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
30+
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
31+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2932
*****************************************************************************************************************************/
3033
/*
3134
Currently support

examples/AsyncHTTPMultiRequests_ESP/AsyncHTTPMultiRequests_ESP.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031
//************************************************************************************************************
3132
//
@@ -56,7 +57,7 @@
5657

5758
// Level from 0-4
5859
#define ASYNC_HTTP_DEBUG_PORT Serial
59-
#define _ASYNC_HTTP_LOGLEVEL_ 4
60+
#define _ASYNC_HTTP_LOGLEVEL_ 1
6061

6162
// 300s = 5 minutes to not flooding
6263
#define HTTP_REQUEST_INTERVAL 30 //300
@@ -149,6 +150,8 @@ void sendRequest()
149150

150151
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
151152
{
153+
(void) optParm;
154+
152155
if (readyState == readyStateDone)
153156
{
154157
Serial.print("\n***************"); Serial.print(requestName[ requestIndex ]); Serial.println("***************");

examples/AsyncHTTPRequest_ESP/AsyncHTTPRequest_ESP.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031
//************************************************************************************************************
3132
//
@@ -129,6 +130,8 @@ void sendRequest()
129130

130131
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
131132
{
133+
(void) optParm;
134+
132135
if (readyState == readyStateDone)
133136
{
134137
Serial.println("\n**************************************");

examples/AsyncHTTPRequest_ESP_WiFiManager/AsyncHTTPRequest_ESP_WiFiManager.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
1818
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
1919
20-
Version: 1.1.1
20+
Version: 1.1.2
2121
2222
Version Modified By Date Comments
2323
------- ----------- ---------- -----------
@@ -26,6 +26,7 @@
2626
1.0.2 K Hoang 09/11/2020 Make Mutex Lock and delete more reliable and error-proof
2727
1.1.0 K Hoang 23/12/2020 Add HTTP PUT, PATCH, DELETE and HEAD methods
2828
1.1.1 K Hoang 24/12/2020 Prevent crash if request and/or method not correct.
29+
1.1.2 K Hoang 11/02/2021 Rename _lock and _unlock to avoid conflict with AsyncWebServer library
2930
*****************************************************************************************************************************/
3031
//************************************************************************************************************
3132
//
@@ -514,6 +515,8 @@ void sendRequest()
514515

515516
void requestCB(void* optParm, AsyncHTTPRequest* request, int readyState)
516517
{
518+
(void) optParm;
519+
517520
if (readyState == readyStateDone)
518521
{
519522
Serial.println("\n**************************************");

0 commit comments

Comments
 (0)