simatic-s7-webserver-api
simatic-s7-webserver-api copied to clipboard
Write struct by Children containing Array
Prior to implementing support for arrays in structs the following feature must be implemented: #1 afterwards the Extension PlcProgramReadStructByChildValues/ ApiPlcProgramHandler shall be checked to support writing by writing children also for the arrays
just a thought: maybe refactor current read to: call a new function that will recursively call itself until the plcprogramdata is readable => then return the ApiRequest ==> RecursiveBuildBulkRequest => Use the built Bulk Request to read the child values and apply the values of the children accordingly (might need a findChildByPath(string childPath) or something like that) benefit: single bulk request (more performant)