Skip to content

eufy-mega / model/capabilities / resolveWorkingMode

Function: resolveWorkingMode()

ts
function resolveWorkingMode(model, value): string | undefined;

Resolve a workingMode raw value to its human mode label for a device model — or undefined if the value isn't in that model's map. Matches the model against the WORKING_MODE_MAPS keys by T-code prefix, falling back to the 3-mode camera DEFAULT.

Parameters

model

string | undefined

value

number

Returns

string | undefined

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.