-
Notifications
You must be signed in to change notification settings - Fork 235
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
Set Desired Property with DeviceTwinDevice to null doesn't work #221
Comments
iot-service-client version 1.11.0 works everything well! |
I take it that this doesn't work in Service client 1.12.0 as well? |
Yes 1.12.0 doesn't work as well. Debugging 1.13.0 :
Line 68 where the JsonElement should be serialized. the twinState in my Example is: and converted to String twinJson: The null value is missing. :/ The function toJsonElement() in com.microsoft.azure.sdk.iot.deps.twin.TwinState;
Null properties will be just ignored. In Version 1.11.0 the final string contains the null property: |
Looks like you are spot on. Thanks for the help! I'm working to get this committed into master soon. It will definitely make the next release we do. I'll update this thread when you can update to get the fix. |
…dn't delete them from the device Github Bug #221
…dn't delete them from the device Github Bug #221
…dn't delete them from the device Github Bug #221
…dn't delete them from the device Github Bug #221
This fix is scheduled to be released tomorrow. Please give it a try then and let me know if it works for you! |
Sure I will test it on Monday and give you a feedback. |
The fix for this issue has been released as of Device Client version 1.11.0. Feel free to re-open this issue if you still see this bug. @karlchen7 thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey. |
Thanks this is now working! |
Hello,
I got an issue when I try to delete a property from the DeviceTwin. When I set the value to null, then the value will not be deleted.
Setup:
Windows 8
Java Runtime: 1.8
Code:
Console:
At the last print there should be no test2 key and value anymore
Even :
tags.add(new Pair("eConfig", null));
doesn't do something
Greetings
The text was updated successfully, but these errors were encountered: