Passing appId through the getDevices