From 0bed6c0c87cef46d7e4b0d933cfcc8a10d39a81b Mon Sep 17 00:00:00 2001 From: Guo Wenxue <guowenxue@gmail.com> Date: Thu, 25 Oct 2018 15:07:08 +0800 Subject: [PATCH] add 5 seconds sleep in socket_client.c when report Temperature --- apue/2.Socket/socket_client.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/apue/2.Socket/socket_client.c b/apue/2.Socket/socket_client.c index 0d292c2..a695557 100644 --- a/apue/2.Socket/socket_client.c +++ b/apue/2.Socket/socket_client.c @@ -109,7 +109,8 @@ } } - //printf("Read %d bytes data from server: '%s'\n", rv, buf); + + sleep(5); } -- Gitblit v1.9.1