protected void Subscribe(TesiraAttributeCode attributeCode) { var token = InstanceTag + "_" + attributeCode.ToCommandString(); Subscriptions[token] = attributeCode; if (!Device.DeviceCommunicating) { return; } SendSubscribe(token, attributeCode); }
internal static string FormatBaseMessage(string instanceTag, TesiraCommand command, TesiraAttributeCode attributeCode) { return(string.Format("{0} {1} {2}", instanceTag, command.ToString().ToLower(), attributeCode.ToCommandString())); }