This PR removes some of the magic from the AdvancedHandler of the AdsTestserver. Namely this is:
PLCVariables will need to be added to the handler before they can be written to or read from
This gives more control over the creation process and makes it more explicit.
PLCVariables need name, value, ads_type and symbol_type on initialisation.
This mirrors more the situation we have with a real plc where we create variables upfront with all necessary type informations at hand. Also it brings more clarity in the tests. One can see which values and types are used by simply looking at the test. No need to search for the default values.
This PR removes some of the magic from the AdvancedHandler of the AdsTestserver. Namely this is:
PLCVariables will need to be added to the handler before they can be written to or read from This gives more control over the creation process and makes it more explicit.
PLCVariables need name, value, ads_type and symbol_type on initialisation. This mirrors more the situation we have with a real plc where we create variables upfront with all necessary type informations at hand. Also it brings more clarity in the tests. One can see which values and types are used by simply looking at the test. No need to search for the default values.