1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-30 00:52:20 +01:00

[wake_on_lan] Make component platform independent (#6815)

This commit is contained in:
Clyde Stubbs
2024-05-29 14:36:49 +10:00
committed by GitHub
parent 2b691ad5ad
commit ec3164f800
8 changed files with 84 additions and 44 deletions

View File

@@ -469,7 +469,8 @@ class LWIPRawImpl : public Socket {
}
ssize_t sendto(const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen) override {
// return ::sendto(fd_, buf, len, flags, to, tolen);
return 0;
errno = ENOSYS;
return -1;
}
int setblocking(bool blocking) override {
if (pcb_ == nullptr) {