example code for get device names