Skip to content

The methods for converting JSON to datapoint are modified in "static".#1129

Open
YmaIneo wants to merge 3 commits intofledge-iot:developfrom
YmaIneo:ymaineo-jsontodatapoint-static
Open

The methods for converting JSON to datapoint are modified in "static".#1129
YmaIneo wants to merge 3 commits intofledge-iot:developfrom
YmaIneo:ymaineo-jsontodatapoint-static

Conversation

@YmaIneo
Copy link
Contributor

@YmaIneo YmaIneo commented Jul 27, 2023

Added static methods, allowing you to create a Datapoint vector without creating or instantiating a datapoint object.

@MarkRiddoch
Copy link
Contributor

Hi, can I ask what problem you are trying to solve with this change please?

@YmaIneo
Copy link
Contributor Author

YmaIneo commented Aug 31, 2023

Hi, can I ask what problem you are trying to solve with this change please?

Hi, i think it's a shame to have to instantiate a Datapoint to convert JSON.
By adding static methods, it allows creating a Datapoint vector without creating or instantiating a datapoint object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants