@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