Exemplo n.º 1
0
        /// <summary>
        /// Gets a list of discoverable devices
        /// <para>NOTE: Only supported by v5.00API or Drewtech</para>
        /// </summary>
        /// <returns></returns>
        public List <string> GetDeviceList()
        {
            List <string> result = new List <string>();

            //Need to make some special sauce to get from registry here
            if (APISignature.SAE_API == SAE_API.V500_SIGNATURE)
            {
            }
            else if (APISignature.DREWTECH_API.HasFlag(DrewTech_API.GETNEXTCARDAQ))
            {
                GetNextCarDAQ_RESET();
                for (GetNextCarDAQResults DrewtechDevice = GetNextCarDAQ();
                     DrewtechDevice != null;
                     DrewtechDevice = GetNextCarDAQ())
                {
                    result.Add(DrewtechDevice.Name);
                }
            }
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets a list of discoverable devices
        /// <para>NOTE: Only supported by v5.00API or Drewtech</para>
        /// </summary>
        /// <returns></returns>
        public List <string> GetDeviceList()
        {
            List <string> result = new List <string>();

            //Need to make some special sauce to get from registry here
            if (APISignature.SAE_API == SAE_API.V500_SIGNATURE)
            {
                throw new System.NotImplementedException("J2534 v5 support is not complete!");
            }
            else if (APISignature.DREWTECH_API.HasFlag(DrewTech_API.GETNEXTCARDAQ))
            {
                GetNextCarDAQ_RESET();
                for (GetNextCarDAQResults DrewtechDevice = GetNextCarDAQ();
                     DrewtechDevice != null;
                     DrewtechDevice = GetNextCarDAQ())
                {
                    result.Add(DrewtechDevice.Name);
                }
            }
            return(result);
        }