c_moore
- 23rd September 2012, 12:51
Hello everyone,
I have a project where I read temperature and send it to the pc. I have a app that takes the data and displays it. What I need to do is only send new data in other words if the temperature changes. as it is right now I send the temp. reading every 10 seconds. I think it would be better if I only sent the data when it changed. some psudo code would really be a big help. It seems simple, but I can't seem to wrap my head around it. Thanks.
I have a project where I read temperature and send it to the pc. I have a app that takes the data and displays it. What I need to do is only send new data in other words if the temperature changes. as it is right now I send the temp. reading every 10 seconds. I think it would be better if I only sent the data when it changed. some psudo code would really be a big help. It seems simple, but I can't seem to wrap my head around it. Thanks.