Documentation Issue?


(Patrick Stuart [@pstuart]) #1

Docs here: http://docs.smartthings.com/en/latest/cloud-and-lan-connected-device-types-developers-guide/building-lan-connected-device-types/building-the-device-type.html#making-outbound-http-calls

def address = device.hub.getDataValue("localIP") + ":" + device.hub.getDataValue("localSrvPortTCP")

This results in an error for me?

Example code doesn’t compile in IDE?

Did functionality change? Is there a better way to get the hub local ip to subscribe?


(Patrick Stuart [@pstuart]) #2

I think I found a way to get the local ip of the hub…

device.deviceNetworkId

So just old documentation?