/// <summary> /// 设定网络参数 /// </summary> /// <param name="lLoginID">设备用户登录ID:CLIENT_Login的返回值</param> /// <param name="netConfig">网络参数</param> /// <param name="waittime">等待时间</param> /// <returns>true:成功;false:失败</returns> public static bool DHSetDevConfig(int lLoginID, DHDEV_NET_CFG netConfig, int waittime) { bool returnValue = false; returnValue = PSetDevConfig(lLoginID, 0, CONFIG_COMMAND.DH_DEV_NETCFG, (object)netConfig, typeof(DHDEV_NET_CFG), waittime); return returnValue; }
/// <summary> /// 设定网络参数[默认等待时间3000] /// </summary> /// <param name="lLoginID">设备用户登录ID:CLIENT_Login的返回值</param> /// <param name="netConfig">网络参数</param> /// <returns>true:成功;false:失败</returns> public static bool DHSetDevConfig(int lLoginID, DHDEV_NET_CFG netConfig) { return DHSetDevConfig(lLoginID, netConfig, 3000); }
/// <summary> /// 获取网络参数 /// </summary> /// <param name="lLoginID">设备用户登录ID:CLIENT_Login的返回值</param> /// <param name="netConfig">网络参数</param> /// <param name="waittime">等待时间</param> /// <returns>true:成功;false:失败</returns> public static bool DHGetDevConfig(int lLoginID, ref DHDEV_NET_CFG netConfig, int waittime) { object result = new object(); bool returnValue = false; returnValue = PGetDevConfig(lLoginID, 0, CONFIG_COMMAND.DH_DEV_NETCFG, ref result, typeof(DHDEV_NET_CFG), waittime); netConfig = (DHDEV_NET_CFG)result; return returnValue; }