Get IoT Shadow Version

  1. My goal is: When I do a shadow update, I want to specify the shadow version.

  2. My actions are: bool mgos_shadow_updatef(uint64_t version, const char *state_jsonf, ...);

  3. My expectation & question is: The device shadow documentation states

If you want the update to be aplied only if a particular version is current, specify the version.

When I do a shadow GET, the payload available as part of the MGOS_SHADOW_GET_ACCEPTED event only includes state keys desired, reported, and delta. Therefor, payload data metadata, version, timestamp, and clientToken are not parsable.

The same applies to payload data available with the MGOS_SHADOW_UPDATE_DELTA

How do I get the current shadow version?

2.20.0