Page 1 of 1

one question about getdeviceid()

Posted: July 26th, 2015, 11:10 pm
by Jing Liu
Hi,

I tried to use getdeviceid() to load the mac address of the computer and use it as the id of operator.

it works fine for a few days, but today get me an error message that the device id get through getdevideid() is different from my document.

Then I found that the getdeviceid() give me a different mad address today. I checked my mac address in cmd pad, using getmac, then I got five of them. both the one i use in my document and the one getdeviceid() showed today are two of them.

the one i got today is one of the "/device\tcpip..." (there are two) and the one i got some days ago is the media disconnected one.

May I ask if there is anyway that getdevice() only give me one mac address constantly?

I think i may be related to the fact that i am using VPN now, but then should i add all of them into my document just in case the interviewer will use mobile hotpot and then it will change the mac address too??



best

Jing

Re: one question about getdeviceid()

Posted: July 28th, 2015, 10:10 am
by Gregory Martin
Right now there is no way to get getdeviceid to return the MAC address of your physical adapter if you're running a VPN. If you are trying to get a unique name for your name, will the getusername function work for you?

In the future, we could modify the getdeviceid function to return multiple addresses and then you could iterate through that list. However, that wouldn't come out until CSPro 6.2, which should come out in a couple months. If your timelines support that, let us know and we can put it in.