12-17-2018 03:00 PM
I am working on software to request data from several sensors every 2 minutes or longer. I am using ConnectToTCPServer to make the connection and then DisconnectFromTCPServer once I have the data. I am seeing the ConversationHandle increase in value each time I re-Connect. After some time, the value surpasses 1000(decimal) and then starts back at 0. That in itself isn't a problem, but when the numbering restarts at 0, many times it fails connect. Since I am talking to 6 sensors, I sometimes fail all 6 connections. After that, it is fine.
Is there a way to manually reset or release the ConversationHandle number so that I can minimize the connection failures?
Thanks, Mike
12-18-2018 03:04 AM
Since zero is a valid conversation handle, I would rather examine the code on your side to try understanding if it behaves differently in that case.
12-18-2018 06:21 AM
Sorry, you are correct. It restarts at 1.