I’d like to know how to delete a key in the reported shadow state that was inserted using mgos_shadow_update(). I’ve tried mgos_shadow_update(0, “{some_key, null}”) but that just assigns the value of some_key to “null”.
curl -H 'Content-Type: application/json' \
-d '{"shadow": {"state": {"desired": {"foo": null}}}}' \
https://mdash.net/api/v2/m/device?access_token=PUBLIC_KEY
1 Like