Future<Onvif>
connect(- {required dynamic host,
- required dynamic username,
- required dynamic password,
- LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off),
- LoggyPrinter printer = const PrettyPrinter(showColors: false)}
)
Implementation
static Future<Onvif> connect(
{required host,
required username,
required password,
LogOptions logOptions = const LogOptions(
LogLevel.error,
stackTraceLevel: LogLevel.off,
),
LoggyPrinter printer = const PrettyPrinter(
showColors: false,
)}) async {
var onvif = Onvif(
host: host,
username: username,
password: password,
logOptions: logOptions,
printer: printer);
await onvif.initialize();
return onvif;
}