mz-automation / libiec61850

Official repository for libIEC61850, the open-source library for the IEC 61850 protocols
http://libiec61850.com/libiec61850
GNU General Public License v3.0
828 stars 444 forks source link

Error when writing all array elements at once #499

Closed denxxjkee closed 3 months ago

denxxjkee commented 3 months ago

Hi Michael!

We work with v1.6 lib and have some issue when tried to write all array elements of data attribute with IEDScout in one request.

The IEDScout can write single item of array (even partially if array have structure elements) and write always succeeds.

But is we set option "Write all values" the IEDScout sends full array and library always response "type-inconsistent". This error appears with any type of arrays, be it structures or integral values.

How can we support writing the entire array and how can we install a write handler that will be called when writing a separate array element (subcomponent) and the entire array?

Our tree: tree with arrays

IEDScout writes separate elements always success: write work on single elements

But if we tries "Write all values" IEDScout fails: write not work on all array

Here that IEDScout sends: Array Wireshark

And lib answer: Array lib answer

denxxjkee commented 3 months ago

Thanks! The fix work perfectly.