title: Python: Socket sending data at time interval
body: <p>I have developed a code in which, I am reading data from serial port every second. Same data I have to send data to any IP and port but with a specific time interval like 10s,30s etc. </p>
  
  <p>So how to tell socket to go to sleep, that it will not send data every second?? </p>