I am stumped here. Trying to get the IP address of devices attached to Gateway using the TCP driver. Tried using system.device.listDevices() with no luck(Only brings back Name, Enabled, State, Driver). Did not see anything else that looked like the answer. Anyone got any ideas or workarounds?
You’re halfway there:
# Get list of devices. dlist = system.device.listDevices() for row in range(dlist.getRowCount()): # Check if device uses TCP driver. if dlist.getValueAt(row,3) == "TCPDriver": # Get device host name. print system.device.getDeviceHostname(dlist.getValueAt(row,0))
Thanks, I can work with that.