Example #1
0
        public void SetNewStationUUID(int iSequence = 0)
        {
            int iSeqLen = iSequence.ToString().Length;

            if (iSeqLen > 8)
            {
                if (UserErrorEvent != null)
                {
                    UserErrorEvent(UUID, new Cerror(Cerror.cErrorCodes.INVALID_STATION_NAME, "Invalid internal ID - Max. Sequence Length = 8."));
                }
                return;
            }

            // 30/03/2015 Falta habilitar ReadDeviceID (también en ControlStackSold01 y 02) y WriteDeviceID cuando se implemente definitivamente en las estaciones
            // 30/05/2016 Se habilita la lectura y grabación de UID de la estación
            clsStationUID stationUUID = new clsStationUID();

            stationUUID.NewGUIDS();
            // write bytes
            m_Frames_02.WriteDeviceUID(stationUUID.StationData);
            m_Frames_02.ReadDeviceUID();
        }