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. | |
Provide functions to emit bridge payloads with the active serial codec.
| 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,...]}.

| 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}
| clickableIndex | The index of the clickable. |
| clickType | The type of the click (long, super long). |
| confirm | Set to true to confirm the action after an ACK has been received. |
| correlationId | The correlation ID that ties request, ack, failover and confirm together. |

| auto Serializer::serializeStaticPayload | ( | constants::payloads::StaticType | payloadType | ) | -> bool |
Send one compile-time pre-serialized static control payload.
| payloadType | type of the payload. |

