getStatus method
获取设备状态
@param cache 是否使用缓存,默认为true 使用缓存
Implementation
@override
Future<StatusResult?> getStatus({int timeout = 5, bool cache = true}) async {
StatusResult? result =
await super.getStatus(timeout: timeout, cache: cache);
if (result != null) {
await cameraCommand(result);
if (result.sys_ver != null) {
if (result.sys_ver!.startsWith('48.')) {
if (sirenCommand != null) {
bool bl = await sirenCommand!.getLightSirenMode();
if (bl == true) {
if (sirenCommand!.sirenMode == true) {
await sirenCommand!.controlSirenMode(false);
}
}
}
}
}
}
return result;
}