Skip to content

@mega-yfue/eufy-sdk / decodeVacuumMap

Function: decodeVacuumMap()

ts
function decodeVacuumMap(raw, codec): VacuumMapPlane | undefined;

Decode a Map message — a frame of the cell plane with the geometry that places it.

undefined when the frame cannot be used rather than when it cannot be parsed: no geometry, no pixels, a plane that failed to decompress, or one too short for the grid it claims. Each of those yields a map that would draw, and draw wrongly.

Parameters

raw

unknown

codec

RawDpCodec | undefined

Returns

VacuumMapPlane | 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.