Exemple #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);
            }
        }
Exemple #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);
            }
        }