Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to publish element values in DataSet datatype values #84

Open
ankitagojiya opened this issue Mar 11, 2024 · 2 comments
Open

Not able to publish element values in DataSet datatype values #84

ankitagojiya opened this issue Mar 11, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ankitagojiya
Copy link

Hello @SeppPenner ,

In SparkplugNet version 1.3.4 , not able publish elements values in DataSet because from my analysis i think there is an error in method "ConvertVersionBDataSetValue" in PayloadConverter class , We are comparing types index(Which will be always 0 , 1 , 2 not datatypes) instead of dataSetValue datatype that's why it will always throw "ArgumentOutOfRangeException" error for any datatype in DataSetValue.
image

I think we have to use below condition
image

It was working fine in SparkplugNet version 1.3.2 pls refer below image.
image

@SeppPenner It will be good if we resolve this ASAP , because I am block with this.

@ankitagojiya
Copy link
Author

I have found another way of using this without above changes , is this the correct way to use it ?

image
Do we need to pass number of elements in " Types = new uint[3]" ?
There is any specific requirement to pass data everytime like this bcz it is not used anywhere else rather than looping ?

@SeppPenner SeppPenner self-assigned this Mar 12, 2024
@SeppPenner SeppPenner added the enhancement New feature or request label Mar 12, 2024
@SeppPenner
Copy link
Owner

SeppPenner commented Mar 12, 2024

I have found another way of using this without above changes , is this the correct way to use it ?

This is the way, yes. Still, I agree that this should be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants