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

Commit abb4a8e

Browse files
committed
Add minimal compatibility headers for AsyncHTTPSRequest_Generic
This library for asynchronous HTTPS requests was originally written to use its own fork of AsyncTCP, renamed to AsyncTCP_SSL and patched to add SSL support. However, this fork has also inherited the design flaw of a queue post with infinite delay that plagues the original AsyncTCP library. Therefore these header files were created that simply #define AsyncSSLClient back into AsyncClient, only when ASYNC_TCP_SSL_ENABLED is defined. Tested with one of the AsyncHTTPSRequest_Generic examples and confirmed to run without issue using AsyncTCPSock instead.
1 parent 1212289 commit abb4a8e

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/AsyncTCP_SSL.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef ASYNCTCP_SSL_H_
2+
#define ASYNCTCP_SSL_H_
3+
4+
#include "AsyncTCP_SSL.hpp"
5+
6+
#endif /* ASYNCTCP_SSL_H_ */

src/AsyncTCP_SSL.hpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#ifndef ASYNCTCP_SSL_HPP
2+
#define ASYNCTCP_SSL_HPP
3+
4+
#ifdef ASYNC_TCP_SSL_ENABLED
5+
6+
#include <AsyncTCP.h>
7+
8+
#define AsyncSSLClient AsyncClient
9+
#define AsyncSSLServer AsyncServer
10+
11+
#define ASYNC_TCP_SSL_VERSION "AsyncTCPSock SSL shim v0.0.1"
12+
13+
#else
14+
#error Compatibility shim requires ASYNC_TCP_SSL_ENABLED to be defined!
15+
#endif
16+
17+
#endif

0 commit comments

Comments
 (0)