I am looking into implementing a driver but I am completely confused by the localisation system, BundleUtil, etc. I tried building and installing the ModbusDriverExample and it seems that it doesn’t work there either.
Instead of using the
Modbus.properties file, the “Create new device” page shows the following text:
Modbus.ModbusRtuOverTcpDriverType.Name Modbus.ModbusRtuOverTcpDriverType.Description Modbus.ModbusTcpDriverType.Name Modbus.ModbusTcpDriverType.Description
Note: I am using the ignition-7.9 branch of the ignition-sdk-examples repository.
The documentation for DriverType states that this takes a nameKey and descriptionKey which will be passed to BundleUtil. Is this correct? Perhaps these should just be plain strings?
Or is there something wrong with the example? An issue with the build scripts? An issue with my build environment?
Also, please could somebody review the documentation for BundleUtil. It’s not clear at all how this works.
- What class am I supposed to pass to addBundle? How do I add a single properties file that’s available to all the classes in my module?
- Why does the shortcut say it’s equivalent to passing
clazz.getClassLoader()instead of just
- Why do the example modules have the
.propertiesfiles in a separate
src/main/resourcestree? Do we have to do this? Aside from being horrible it also contradicts the documentation which states that the
.propertiesfiles should be alongside the