project/socketd/sock_client.c
@@ -166,10 +166,12 @@ } log_info("DS18B20 sample termperature %.3f oC\n", pack_info.temper); get_devid(pack_info.devid, DEVID_LEN, 40); get_devid(pack_info.devid, sizeof(pack_info.devid), 88); get_time(&pack_info.sample_time); pack_bytes = pack_proc(&pack_info, pack_buf, sizeof(pack_buf)); pack_bytes = pack_proc(&pack_info, (uint8_t *)pack_buf, sizeof(pack_buf)); log_dump(LOG_LEVEL_DEBUG, NULL, pack_buf, pack_bytes); sample_flag = 1; /* set sample flag */ }