Example #1
0
        protected void Subscribe(TesiraAttributeCode attributeCode)
        {
            var token = InstanceTag + "_" + attributeCode.ToCommandString();

            Subscriptions[token] = attributeCode;
            if (!Device.DeviceCommunicating)
            {
                return;
            }
            SendSubscribe(token, attributeCode);
        }
Example #2
0
 internal static string FormatBaseMessage(string instanceTag, TesiraCommand command, TesiraAttributeCode attributeCode)
 {
     return(string.Format("{0} {1} {2}", instanceTag, command.ToString().ToLower(), attributeCode.ToCommandString()));
 }