writeCgi method

  1. @override
Future<bool> writeCgi(
  1. String cgi, {
  2. int timeout = 5,
  3. bool needLogin = true,
})
override

发送CGI指令 底层封装CGI数据格式

Implementation

@override
Future<bool> writeCgi(String cgi,
    {int timeout = 5, bool needLogin = true}) async {
  if (_destroyFlag == true) {
    return false;
  }
  if (needLogin == true && connectState != CameraConnectState.connected) {
    return false;
  }
  return super.writeCgi(cgi, timeout: timeout);
}