Skip to content

@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

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.