@mega-yfue/eufy-sdk / decodeVacuumMapBackup
Function: decodeVacuumMapBackup()
ts
function decodeVacuumMapBackup(raw, codec): VacuumMapBackup | undefined;Decode a MapBackup message — the five-part snapshot sent when a map is switched or edited.
Each part is decoded from its own bytes through the same decoder that reads it standing alone, so a backup and a live frame cannot drift apart. A part the device did not send stays undefined rather than becoming an empty one: an absent map in a rename is not a map with no cells.
Parameters
raw
unknown
codec
RawDpCodec | undefined
Returns
VacuumMapBackup | undefined