This program subscribes to an MQTT topic e.g. home/devices/adb/<device_id>/set
and allows turning off an Android device
that is configured to use adb over network.
Make sure you have a recent version of Rust installed. Android's platform-tools are required as well. There's a docker image provided with all necessary dependencies installed.
- Clone this repo
- Copy Settings.toml.example -> Settings.toml
- Configure Settings.toml to match your setup (see below)
cargo run
MQTT messages use the following JSON format:
{
"power": false,
}