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.
|
/*
|
|
|
|
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; }
|
|
|
|
};
|