print when receives data, send data at timer interval