Failed communication with a camera socket

Hello to everyone,

Hello everyone, I am communicating via socket a universal robot with a camera.

When the robot is positioned at the point where the camera should say whether to pick up a part or not, I get the following error:
socket_read_ascii_float : timeout

as if there was no communication. This is random, sometimes it happens, sometimes it doesn’t.

Any idea how to fix it?

Could it be adding a longer timeout?