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

Commit 03a15f9

Browse files
authored
v1.2.1
### Releases v1.2.1 1. Clean-up all compiler warnings possible. 2. Add Table of Contents
1 parent 93bc848 commit 03a15f9

22 files changed

+220
-81
lines changed

src/EthernetHttpClient_SSL_STM32.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/****************************************************************************************************************************
2-
EthernetHttpClient_SSL_STM32.h - Dead simple HTTP WebClient.
3-
For STM32 with built-in Ethernet LAN8742A (Nucleo-144, DISCOVERY, etc) or W5x00/ENC28J60 shield/module
2+
EthernetHttpClient_SSL_STM32.h - Dead simple HTTP WebClient.
3+
For STM32 with built-in Ethernet LAN8742A (Nucleo-144, DISCOVERY, etc) or W5x00/ENC28J60 shield/module
44
5-
EthernetWebServer_STM32 is a library for the STM32 running Ethernet WebServer
5+
EthernetWebServer_STM32 is a library for the STM32 running Ethernet WebServer
66
7-
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
8-
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
9-
Licensed under MIT license
10-
Version: 1.2.0
7+
Based on and modified from ESP8266 https://github.com/esp8266/Arduino/releases
8+
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_STM32
9+
Licensed under MIT license
10+
Version: 1.2.1
1111
1212
Version Modified By Date Comments
1313
------- ----------- ---------- -----------
@@ -16,6 +16,7 @@
1616
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1717
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
1818
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
19+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
1920
*****************************************************************************************************************************/
2021

2122
// Library to simplify HTTP fetching on Arduino

src/EthernetWebServer_SSL_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
#pragma once

src/EthernetWebServer_SSL_STM32.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,11 +18,12 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
#pragma once
2425

25-
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.2.0"
26+
#define ETHERNET_WEBSERVER_SSL_STM32_VERSION "EthernetWebServer_SSL_STM32 v1.2.1"
2627

2728
#if !( defined(STM32F0) || defined(STM32F1) || defined(STM32F2) || defined(STM32F3) ||defined(STM32F4) || defined(STM32F7) || \
2829
defined(STM32L0) || defined(STM32L1) || defined(STM32L4) || defined(STM32H7) ||defined(STM32G0) || defined(STM32G4) || \

src/Ethernet_HTTPClient/Ethernet_HttpClient.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// Class to simplify HTTP fetching on Arduino
@@ -113,7 +114,7 @@ int EthernetHttpClient::startRequest(const char* aURLPath, const char* aHttpMeth
113114
{
114115
if (iServerName)
115116
{
116-
if (!iClient->connect(iServerName, iServerPort) > 0)
117+
if (! (iClient->connect(iServerName, iServerPort) > 0) )
117118
{
118119
ET_LOGDEBUG(F("EthernetHttpClient::startRequest: Connection failed"));
119120

@@ -122,7 +123,7 @@ int EthernetHttpClient::startRequest(const char* aURLPath, const char* aHttpMeth
122123
}
123124
else
124125
{
125-
if (!iClient->connect(iServerAddress, iServerPort) > 0)
126+
if (! (iClient->connect(iServerAddress, iServerPort) > 0) )
126127
{
127128
ET_LOGDEBUG(F("EthernetHttpClient::startRequest: Connection failed"));
128129

src/Ethernet_HTTPClient/Ethernet_HttpClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// Class to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_URLEncoder.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// Library to simplify HTTP fetching on Arduino

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// (c) Copyright Arduino. 2016

src/Ethernet_HTTPClient/Ethernet_WebSocketClient.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
// (c) Copyright Arduino. 2016

src/Parsing_SSL_STM32-impl.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
#pragma once

src/detail/Debug_STM32.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
#ifndef EthernetWebServer_STM32_Debug_H

src/detail/RequestHandler_STM32.h

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,11 +18,19 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

24+
#pragma once
25+
2326
#ifndef RequestHandler_STM32_h
2427
#define RequestHandler_STM32_h
2528

29+
#ifndef ETW_UNUSED
30+
#define ETW_UNUSED(x) (void)(x)
31+
#endif
32+
33+
2634
class RequestHandler
2735
{
2836
public:
@@ -31,20 +39,34 @@ class RequestHandler
3139

3240
virtual bool canHandle(HTTPMethod method, String uri)
3341
{
42+
ETW_UNUSED(method);
43+
ETW_UNUSED(uri);
44+
3445
return false;
3546
}
3647

3748
virtual bool canUpload(String uri)
3849
{
50+
ETW_UNUSED(uri);
51+
3952
return false;
4053
}
4154

4255
virtual bool handle(EthernetWebServer& server, HTTPMethod requestMethod, String requestUri)
4356
{
57+
ETW_UNUSED(server);
58+
ETW_UNUSED(requestMethod);
59+
ETW_UNUSED(requestUri);
60+
4461
return false;
4562
}
4663

47-
virtual void upload(EthernetWebServer& server, String requestUri, HTTPUpload& upload) {}
64+
virtual void upload(EthernetWebServer& server, String requestUri, HTTPUpload& upload)
65+
{
66+
ETW_UNUSED(server);
67+
ETW_UNUSED(requestUri);
68+
ETW_UNUSED(upload);
69+
}
4870

4971
RequestHandler* next()
5072
{

src/detail/RequestHandlersImpl_STM32.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,8 +18,11 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

24+
#pragma once
25+
2326
#ifndef RequestHandlerImpl_STM32_h
2427
#define RequestHandlerImpl_STM32_h
2528

@@ -68,6 +71,8 @@ class FunctionRequestHandler : public RequestHandler
6871

6972
bool handle(EthernetWebServer& server, HTTPMethod requestMethod, String requestUri) override
7073
{
74+
ETW_UNUSED(server);
75+
7176
if (!canHandle(requestMethod, requestUri))
7277
return false;
7378

@@ -77,6 +82,9 @@ class FunctionRequestHandler : public RequestHandler
7782

7883
void upload(EthernetWebServer& server, String requestUri, HTTPUpload& upload) override
7984
{
85+
ETW_UNUSED(server);
86+
ETW_UNUSED(upload);
87+
8088
if (canUpload(requestUri))
8189
_ufn();
8290
}

src/detail/mimetable.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1010
Licensed under MIT license
1111
12-
Version: 1.2.0
12+
Version: 1.2.1
1313
1414
Version Modified By Date Comments
1515
------- ----------- ---------- -----------
@@ -18,6 +18,7 @@
1818
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
1919
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2020
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
21+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2122
*****************************************************************************************************************************/
2223

2324
#ifndef __MIMETABLE_H__

src/inner.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.0
13+
Version: 1.2.1
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
22+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2223
*****************************************************************************************************************************/
2324

2425
#include "SSLClient/inner.h"

src/libb64/base64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Built by Khoi Hoang https://github.com/khoih-prog/EthernetWebServer_SSL_STM32
1111
Licensed under MIT license
1212
13-
Version: 1.2.0
13+
Version: 1.2.1
1414
1515
Version Modified By Date Comments
1616
------- ----------- ---------- -----------
@@ -19,6 +19,7 @@
1919
1.1.1 K Hoang 18/11/2020 Permit sites with "Chain could not be linked to a trust anchor" such as ThingStream
2020
1.1.2 K Hoang 19/11/2020 Add SSL debug feature. Enhance examples.
2121
1.2.0 K Hoang 20/11/2020 Add basic HTTP and WebSockets Client by merging ArduinoHttpClient
22+
1.2.1 K Hoang 26/12/2020 Suppress all possible compiler warnings
2223
*****************************************************************************************************************************/
2324

2425
#include "base64.h"

0 commit comments

Comments
 (0)