Hey all,
I'm hoping this will be a simple fix, but I'm using the following script with a list of device names and IP addresses:
> deviceType = "ModbusTcp"
>
> for i in range(len(trackers)):
> deviceName = str(trackers[i])
> deviceProps = {'Enabled': 1, 'HostName': str(ips[i]), 'Port':"502"}
>
> system.device.addDevice(deviceType, deviceName, deviceProps)
I checked the manual and I pulled a list of devices from my gateway and copied the deviceType/driver string exactly from the other modbus tcp devices in case I fat fingered something but no luck.
The error returned is a bunch of java stuff but the gist seems to be this:
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Device driver 'MODBUSTCP' doesn't exist
Which makes no sense, but maybe the driver name is different from how I'm typing it or something. Appreciate any ideas, thanks folks.