loginNetDevice method
登录网络设备
- Parameters:
- userId: 用户名
- pwd: 密码
- ipAddr: 网络地址
- port: 端口号
Implementation
Future<EzvizNetDeviceInfo?> loginNetDevice(
String userId,
String pwd,
String ipAddr,
int port,
) async {
final Map<String, dynamic>? result = await _channel.invokeMapMethod(
EzvizChannelMethods.loginNetDevice,
{"userId": userId, "pwd": pwd, "ipAddr": ipAddr, "port": port},
);
if (result != null) {
return EzvizNetDeviceInfo.fromJson(result);
} else {
return null;
}
}