public void RequestAttributes(TBAttributesRequest attributesRequest)
        {
            tbRequestId++;
            string json = attributesRequest.ToJson();

            client.Publish(ATTRIBUTES_TOPIC_REQUEST + tbRequestId, Encoding.UTF8.GetBytes(json), QoS, false);
        }
        private static void DoRequestAttributes(string[] args)
        {
            TBAttributesRequest tBAttributesRequest = new TBAttributesRequest();

            foreach (var attr in args)
            {
                var dataToSend = attr.Split(':');
                if (dataToSend[0] == "ca")
                {
                    tBAttributesRequest.AddClientAttribute(dataToSend[1]);
                }
                else if (dataToSend[0] == "sa")
                {
                    tBAttributesRequest.AddSharedAttribute(dataToSend[1]);
                }
            }
            thingsBoard.RequestAttributes(tBAttributesRequest);
        }