Skip to content

eufy-mega / model/capabilities / decodeState

Function: decodeState()

ts
function decodeState(signal, capabilities?): DecodedState[];

Recover device state from an inbound signal — the state-side dual of CapabilityModule.decodeEvent. Gated by the reporting device's capabilities exactly as events are, so one product line's decoder never runs against another line's traffic. One entry per module that recognised the signal; a module that decoded no fields is dropped.

Parameters

signal

InboundSignal

capabilities?

ReadonlySet<Capability>

Returns

DecodedState[]

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