Example #1
0
 /// <summary>
 /// Device attributes set
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="systemAttrConfig">equipment attributes</param>
 /// <param name="waittime">waitime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID,NETDEV_SYSTEM_ATTR_CFG systemAttrConfig, int waittime)
 {
     bool returnValue = false;
     returnValue = PSetDevConfig(lLoginID, 0, CONFIG_COMMAND.NET_DEV_DEVICECFG, (object)systemAttrConfig, typeof(NETDEV_SYSTEM_ATTR_CFG), waittime);
     return returnValue;
 }
Example #2
0
 /// <summary>
 /// Device attributes set [the default wait time 3000]
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="systemAttrConfig">Equipment Properties</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, NETDEV_SYSTEM_ATTR_CFG systemAttrConfig)
 {
     return NETSetDevConfig(lLoginID, systemAttrConfig, 3000);
 }
Example #3
0
 /// <summary>
 /// Access to equipment configuration [equipment configuration information]
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="systemAttrConfig">equipment information</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETGetDevConfig(int lLoginID, ref NETDEV_SYSTEM_ATTR_CFG systemAttrConfig, int waittime)
 {
     object result = new object();
     bool returnValue = false;
     returnValue = PGetDevConfig(lLoginID, 0, CONFIG_COMMAND.NET_DEV_DEVICECFG, ref result, typeof(NETDEV_SYSTEM_ATTR_CFG),waittime);
     systemAttrConfig = (NETDEV_SYSTEM_ATTR_CFG)result;
     return returnValue;
 }