Skip to content

Commit

Permalink
Fix issue #145 for compilation error in ESP32 Core v3.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Dec 5, 2024
1 parent b8ef4de commit 4833ae5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/client/SSLClient/client/BSSL_SSL_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@

#if defined(ESP_ARDUINO_VERSION) /* ESP32 core >= v2.0.x */
#if ESP_ARDUINO_VERSION >= ESP_ARDUINO_VERSION_VAL(3, 1, 0)
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE override;
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE override;
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_HAS_TMO
#else
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE
#endif
#else
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE
#define ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE
#endif

#define BSSL_SSL_CLIENT_MIN_SESSION_TIMEOUT_SEC 60
Expand Down
4 changes: 2 additions & 2 deletions src/client/SSLClient/client/BSSL_TCP_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class BSSL_TCP_Client : public Client
* @param timeout The connection time out in miiliseconds.
* @return 1 for success or 0 for error.
*/
int connect(IPAddress ip, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE;
int connect(IPAddress ip, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE;

/**
* Connect to server.
Expand All @@ -125,7 +125,7 @@ class BSSL_TCP_Client : public Client
* @param timeout The connection time out in miiliseconds.
* @return 1 for success or 0 for error.
*/
int connect(const char *host, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRRIDE;
int connect(const char *host, uint16_t port, int32_t timeout) ESP32_ARDUINO_CORE_CLIENT_CONNECT_OVERRIDE;

/**
* Get TCP connection status.
Expand Down

0 comments on commit 4833ae5

Please sign in to comment.