Use async method to get devices