-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
39 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
SyncClientWrap | ||
Temporary wrap to fix https://github.com/me-no-dev/ESPAsyncTCP/issues/109 | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <SyncClient.h> | ||
|
||
class SyncClientWrap: public SyncClient { | ||
|
||
public: | ||
|
||
int connect(const char *host, uint16_t port); | ||
int connect(CONST IPAddress& ip, uint16_t port) { return connect(ip, port); } | ||
bool flush(unsigned int maxWaitMs = 0) { flush(); return true; } | ||
bool stop(unsigned int maxWaitMs = 0) { stop(); return true; } | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51703f6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already raised this in the xoseperez/NtpClient#2 , but at what point it is a good idea to import library code and modify it to fix the problems? e.g. hypothetical ESPAsyncTCP TLS using new BearSSL lib, where upstream is kinda slow