Skip to content

@mega-yfue/eufy-sdk / buildDirectBinaryBody

Function: buildDirectBinaryBody() ​

ts
function buildDirectBinaryBody(
   value, 
   accountId, 
   channel?
): Buffer;

Build a level-2 direct-binary control body: [u32 channel?][u32 value][account_id ASCII pad→128]. Omit channel for the channel-less station form (e.g. HomeBase alarm volume). See the struct note above.

Parameters ​

value ​

number

accountId ​

string

channel? ​

number

Returns ​

Buffer

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