Skip to content

wake_on_lan, lx200_10micron: replace raw socket WoL with wakeonlan#2414

Merged
knro merged 1 commit into
indilib:masterfrom
fenriques:master
Jun 13, 2026
Merged

wake_on_lan, lx200_10micron: replace raw socket WoL with wakeonlan#2414
knro merged 1 commit into
indilib:masterfrom
fenriques:master

Conversation

@fenriques

Copy link
Copy Markdown
Contributor

The raw UDP broadcast implementation (port 9, 255.255.255.255) did not reliably wake target hosts. Replace with system("wakeonlan ") which delegates to the wakeonlan tool and works correctly.

If wakeonlan is not installed (exit code 127), a clear error is logged asking the user to install it. The tool is available on Linux distributions and macOS (via Homebrew).

wake_on_lan: also refactors ISNewSwitch() with a handleSend lambda to eliminate code duplication across the 4 device slots, and removes the now-unused socket headers.

lx200_10micron: removes now-unused socket headers (<sys/socket.h>, <netinet/in.h>, , <unistd.h>) which were introduced solely for the socket-based WoL implementation.

…nlan)

The raw UDP broadcast implementation (port 9, 255.255.255.255) did not
reliably wake target hosts. Replace with system("wakeonlan <mac>") which
delegates to the wakeonlan tool and works correctly.

If wakeonlan is not installed (exit code 127), a clear error is logged
asking the user to install it. The tool is available on Linux distributions
and macOS (via Homebrew).

wake_on_lan: also refactors ISNewSwitch() with a handleSend lambda to
eliminate code duplication across the 4 device slots, and removes the
now-unused socket headers.

lx200_10micron: removes now-unused socket headers (<sys/socket.h>,
<netinet/in.h>, <cerrno>, <unistd.h>) which were introduced solely for
the socket-based WoL implementation.
@knro knro merged commit 29c0973 into indilib:master Jun 13, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants