Ejemplo n.º 1
0
        /// <summary>
        /// On data event from socket
        /// </summary>
        /// <param name="data"></param>
        private void OnData(string data)
        {
            //Data capture
            DataCapture?.Invoke(data);

            //Convert and use
            if (TryConvert(data, out DataPoint[] datapoint))
Ejemplo n.º 2
0
        /// <summary>
        /// Called when data was received
        /// </summary>
        /// <param name="data">The data.</param>
        private void OnData(string data)
        {
            try
            {
                //Reset timer
                _timeoutTimer.EnableAndReset();

                //Data capture
                DataCapture?.Invoke(data);

                //Convert and use
                if (TryConvert(data, out DataPoint[] datapoint))