@mega-yfue/eufy-sdk / decodeVacuumSchedules
Function: decodeVacuumSchedules()
ts
function decodeVacuumSchedules(raw, codec):
| readonly VacuumSchedule[]
| undefined;Decode a TimerResponse (DP 164) to the schedules it reports, or undefined.
undefined means the payload could not be read at all — no codec, not a Raw-DP value, malformed bytes. An empty array is a different and equally real answer: the device reports its timers in full every time, so a report carrying none says this robot has no schedules set.
The device sends this unprompted on boot and after any change, and in reply to an INQUIRY. Which of those produced a given payload does not change the reading — every report is the complete list — so the request method and seq beside it are not surfaced.
Parameters
raw
unknown
codec
RawDpCodec | undefined
Returns
| readonly VacuumSchedule[] | undefined