コード例 #1
0
ファイル: TesiraBlockBase.cs プロジェクト: uxav/lib2-devices
        protected void Subscribe(TesiraAttributeCode attributeCode)
        {
            var token = InstanceTag + "_" + attributeCode.ToCommandString();

            Subscriptions[token] = attributeCode;
            if (!Device.DeviceCommunicating)
            {
                return;
            }
            SendSubscribe(token, attributeCode);
        }
コード例 #2
0
ファイル: Tesira.cs プロジェクト: uxav/lib2-devices
 internal static string FormatBaseMessage(string instanceTag, TesiraCommand command, TesiraAttributeCode attributeCode)
 {
     return(string.Format("{0} {1} {2}", instanceTag, command.ToString().ToLower(), attributeCode.ToCommandString()));
 }