Get Device network id

How do you get the device network id from inside a driver? I want the id of a device connected to said driver. I tried 'device.id' but this returns a number that I am not familiar with.

Thanks
Mike

Did you try?

device.deviceNetworkId

I'm not sure haven't used it yet but am interested.

This returns the HE numerical id that you see in the url when viewing a device page.

What you are looking for is
device.deviceNetworkId

Sorry to ninja you!!! :grin:

1 Like

Thanks All! Why didn't I think of that! Haha!

Programming's easy, it's all the spelling and punctuation that kills ya.

:smiley::smiley:

1 Like