LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
Serializer Namespace Reference

Provide functions to emit bridge payloads with the active serial codec. More...

Functions

auto serializeStaticPayload (constants::payloads::StaticType payloadType) -> bool
 Send one compile-time pre-serialized static control payload.
 
auto serializeDetails () -> bool
 Send the generated device-details payload using the active serial codec.
 
auto serializeActuatorsState () -> bool
 Send an actuator-state payload with a bitpacked byte array.
 
auto serializeNetworkClick (uint8_t clickableIndex, constants::ClickType clickType, bool confirm, uint8_t correlationId) -> bool
 Send a network click request/confirmation payload using the active serial codec.
 

Detailed Description

Provide functions to emit bridge payloads with the active serial codec.

Function Documentation

◆ serializeActuatorsState()

auto Serializer::serializeActuatorsState ( ) -> bool

Send an actuator-state payload with a bitpacked byte array.

The actuator manager keeps a packed state shadow in protocol order, so this path only appends already-built bytes to the outbound payload. JSON output format: {"p":2,"s":[byte0,byte1,...]}.

Here is the caller graph for this function:

◆ serializeNetworkClick()

auto Serializer::serializeNetworkClick ( uint8_t  clickableIndex,
constants::ClickType  clickType,
bool  confirm,
uint8_t  correlationId 
) -> bool

Send a network click request/confirmation payload using the active serial codec.

Uses NETWORK_CLICK_REQUEST (p:3) for network click requests. Example request: {"p":3,"t":1,"i":7,"c":42}

Parameters
clickableIndexThe index of the clickable.
clickTypeThe type of the click (long, super long).
confirmSet to true to confirm the action after an ACK has been received.
correlationIdThe correlation ID that ties request, ack, failover and confirm together.
Here is the call graph for this function:

◆ serializeStaticPayload()

auto Serializer::serializeStaticPayload ( constants::payloads::StaticType  payloadType) -> bool

Send one compile-time pre-serialized static control payload.

Parameters
payloadTypetype of the payload.
Here is the call graph for this function:
Here is the caller graph for this function: