Updating desired state of AWS device shadow from the device

Thanks @nliviu , this is exactly what I was trying with no luck. As you can see, I pass in {desired: {}} to the state, but it doesn’t clear the desired object from AWS. (I also tried to overried existing values, but the result is the same, the passed object will be put in the “reported” object)