tplink: Implement battery level support

This commit is contained in:
Evan Anderson
2025-09-26 20:39:19 +02:00
committed by Cooper Quintin
parent dac838eea9
commit 5ccdcc8685
2 changed files with 41 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ use crate::{
pub mod orbic;
pub mod tmobile;
pub mod tplink;
pub mod wingtech;
const LOW_BATTERY_LEVEL: u8 = 10;
@@ -50,6 +51,7 @@ pub async fn get_battery_status(device: &Device) -> Result<BatteryState, Rayhunt
Device::Orbic => orbic::get_battery_state().await?,
Device::Wingtech => wingtech::get_battery_state().await?,
Device::Tmobile => tmobile::get_battery_state().await?,
Device::Tplink => tplink::get_battery_state().await?,
_ => return Err(RayhunterError::FunctionNotSupportedForDeviceError),
})
}