Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
481 B

  1. /*
  2. SyncClientWrap
  3. Temporary wrap to fix https://github.com/me-no-dev/ESPAsyncTCP/issues/109
  4. */
  5. #pragma once
  6. #include <SyncClient.h>
  7. class SyncClientWrap: public SyncClient {
  8. public:
  9. int connect(const char *host, uint16_t port);
  10. int connect(CONST IPAddress& ip, uint16_t port) { return connect(ip, port); }
  11. bool flush(unsigned int maxWaitMs = 0) { flush(); return true; }
  12. bool stop(unsigned int maxWaitMs = 0) { stop(); return true; }
  13. };