P
P
Peter2018-02-06 12:23:33
C++ / C#
Peter, 2018-02-06 12:23:33

Checking data for relevance. How to implement?

Good afternoon. I have an application that pulls data from another program with a delay of 100ms.
All this is wrapped in a method with type string.
The label of the window displays the value of this method. For local use, this is enough for me, but I want to transfer these values ​​​​to my site or VKontakte.
I still agree to send data every 100ms to my site, but Vkontakte will definitely not understand this.
How can I do a data comparison? For example, as soon as the data has changed, it is sent to avoid spam with monotonous values.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Borovik, 2018-02-06
@Morpheus_God

as an option: at each iteration, store the received data and compare them on the next. iterations. if they differ, then we overwrite, form a string and send it wherever you want (VK or your site, it doesn’t matter). Well, you know better how to compare them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question