Exemplo n.º 1
0
        private async Task GetNamed(enuObjectType type)
        {
            GetNextNamed(type, 0);

            await Task.Run(() =>
            {
                log.Debug("Waiting for named units " + type.ToString());
                nameWait.WaitOne(new TimeSpan(0, 0, 10));
            });
        }
Exemplo n.º 2
0
        private void GetNextNamed(enuObjectType type, int ix)
        {
            clsOL2MsgRequestProperties MSG = new clsOL2MsgRequestProperties(Controller.Connection);

            MSG.ObjectType        = type;
            MSG.IndexNumber       = (UInt16)ix;
            MSG.RelativeDirection = 1; // next object after IndexNumber
            MSG.Filter1           = 1; // (0=Named or Unnamed, 1=Named, 2=Unnamed).
            MSG.Filter2           = 0; // Any Area
            MSG.Filter3           = 0; // Any Room
            Controller.Connection.Send(MSG, HandleNamedPropertiesResponse);
        }
Exemplo n.º 3
0
        private void GetNextNamed(enuObjectType type, int ix)
        {
            var MSG = new clsOL2MsgRequestProperties(Controller.Connection)
            {
                ObjectType        = type,
                IndexNumber       = (UInt16)ix,
                RelativeDirection = 1, // next object after IndexNumber
                Filter1           = 1, // (0=Named or Unnamed, 1=Named, 2=Unnamed).
                Filter2           = 0, // Any Area
                Filter3           = 0  // Any Room
            };

            Controller.Connection.Send(MSG, HandleNamedPropertiesResponse);
        }