How to finish the Xferdata when I set the timeout to INFINITE?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
chca_2098406
Level 1
Level 1
First question asked First reply posted

In my case, I need synchronous mode to receive data, while the waiting time before data is uncertain. So I configured the timeout to Infinite. But I found that when I needed to stop, there seemed to be no way to stop.

0 Likes
1 Solution
Anonymous
Not applicable

Hi Instead of setting the timeout to infinite, please call the XferData at regular intervals again and again with finite timeout

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

Hi Instead of setting the timeout to infinite, please call the XferData at regular intervals again and again with finite timeout

0 Likes

Hi,

Of course, I tried.

The test found that the data could not be received when the next transmission was started after a timeout.

For example, set timeout to 5 seconds, and the data comes at the sixth seconds, then I could not get the data at all.

Do you have any ideas?

Thanks

Chad

0 Likes
Anonymous
Not applicable

Hi,

Please refer to the control center and streamer source code to and handle the transfer error, the same way it is implemented in our examples.

Regards,

-Madhu Sudhan

0 Likes

Hi Madhu,

Thanks,I had solved it。

Thanks

Chad

0 Likes