heart beat command and migrate send command tobytes()