Esempio n. 1
0
        private void AddNewAnalyticsDataToDeviceMemory(Control changedControl)
        {
            if (changedControl.ShouldKeepAnalytics())
            {
                List <byte> analyticsBuffer = HeepDeviceAnalytics.GetDeviceAnalyticsByteArray(changedControl, myID);
                HeepLanguage.AddBufferToBuffer(deviceMemory, analyticsBuffer);

                HeepCommunications.SendAnalytics(myID, deviceMemory);
            }
        }
Esempio n. 2
0
        private void AddNewAnalyticsDataToDeviceMemory(Control changedControl)
        {
            if (changedControl.ShouldKeepAnalytics())
            {
                Console.WriteLine("Hello");

                List <byte> analyticsBuffer = HeepDeviceAnalytics.GetDeviceAnalyticsByteArray(changedControl, myID);
                HeepLanguage.AddBufferToBuffer(deviceMemory, analyticsBuffer);
                NonVolatileData.WriteMemoryToFile(deviceMemory);

                HeepCommunications.SendAnalytics(myID, deviceMemory);
            }
        }