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

[BUG] - Check Type Association in DT State Property #9

Open
piconem opened this issue Aug 30, 2023 · 0 comments
Open

[BUG] - Check Type Association in DT State Property #9

piconem opened this issue Aug 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@piconem
Copy link
Member

piconem commented Aug 30, 2023

Check the following weird behavior where the developer specifies a target "type" for a property and the library use the Class type instead of the provided value.

Example:

DigitalTwinStateProperty<Boolean> testProperty = new DigitalTwinStateProperty<>("test-key", false);
testProperty.setType("test.boolean");

Testing it with the HTTP Adapter the JSON result for the property is:

 {
        "key": "sensor-light-barrier",
        "value": true,
        "type": "java.lang.Boolean",
        "readable": true,
        "writable": true,
        "exposed": true
}

instead of:

 {
        "key": "test-key",
        "value": true,
        "type": "test.boolean",
        "readable": true,
        "writable": true,
        "exposed": true
}

Check also if for each update we have an update of the type.
The correct behavior is that the property should be set at the creation or on an direct update.

@piconem piconem added the bug Something isn't working label Aug 30, 2023
@piconem piconem self-assigned this Aug 30, 2023
@piconem piconem changed the title Check Type Association in DT State Property [BUG] - Check Type Association in DT State Property Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant