@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