Web Power Switch - C++ Library
Features:
- auto discovery (finds switch on the same network as host)
- cached recollection of switches (refreshed forcefully or automatically)
- if not found, IP or hostname may be provided and connection (caching) will be attempted
Build
- sudo apt install cmake libtidy-dev libyaml-cpp-dev libcurl4-gnutls-dev libssl-dev libcxxopts-dev libabsl-dev
- (optional) meson wrap update-db
- meson setup build
- ninja -C build
Clean
- Run the clean.sh script to expunge build and subprojects.
Tested on ubuntu (23.04-Lunar Lobster) and raspios (11-bullseye).