added sample for getDeviceByID