@mega-yfue/eufy-sdk / ScalarForm
Type Alias: ScalarForm
ts
type ScalarForm = "auto" | "int-string" | "direct-binary";Wire form for a scalar Command "set-param" intent — how the write is sealed. The BODY is the same struct in every case — [u32 channel][u32 value][account_id → 128B] — so these choose only the encryption.
"int-string"pins level-1 (AES-128-ECB),"direct-binary"pins level-2 (AES-256-GCM)."auto"lets the transport pick the level, which it resolves from the session it will send on.