get datas device last_sync_time condition