public SerialNetConfig(SerialNetProtocol _protocol, string[] values)
        {
            protocol = _protocol;

            if (values[0].Contains("AT%H"))
            {
                ParseFullConfig(values);
            }
        }
        public SerialNetDevice()
        {
            protocol = new SerialNetProtocol();
            config = new SerialNetConfig(protocol);
            sPort = new SerialPort(config.port, config.baud);

            sPort.Open();

            parser = new SerialNetParser(protocol, sPort);
            parser.ConfigReceived += new EventHandler<SerialNetConfigEventArgs>(parser_ConfigReceived); //!< parser will bubble up a config if it gets a full one from AT%H command
        }
 public SerialNetConfig(SerialNetProtocol _protocol)
 {
     protocol = _protocol;
 }
        int index = 0; //!< where we are as far as filling the buffer goes

        #endregion Fields

        #region Constructors

        //!< SerialNet parser needs a serialport to attach to
        public SerialNetParser(SerialNetProtocol _protocol, SerialPort port)
        {
            protocol = _protocol;
            port.DataReceived += new SerialDataReceivedEventHandler(port_DataReceived);
        }