LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
serializer.hpp
Go to the documentation of this file.
1
21#ifndef LSH_CORE_COMMUNICATION_SERIALIZER_HPP
22#define LSH_CORE_COMMUNICATION_SERIALIZER_HPP
23
24#include <stdint.h>
25
32namespace Serializer
33{
34[[nodiscard]] auto serializeStaticPayload(constants::payloads::StaticType payloadType) -> bool; // Send a static control payload
35[[nodiscard]] auto serializeDetails() -> bool; // Send generated device details
36[[nodiscard]] auto serializeActuatorsState() -> bool; // Send packed actuator state
37[[nodiscard]] auto serializeNetworkClick(uint8_t clickableIndex,
38 constants::ClickType clickType,
39 bool confirm,
40 uint8_t correlationId) -> bool; // Send a network click payload
41} // namespace Serializer
42
43#endif // LSH_CORE_COMMUNICATION_SERIALIZER_HPP
Defines enums for various click types and fallback behaviors.
Provide functions to emit bridge payloads with the active serial codec.
Definition serializer.cpp:273
auto serializeStaticPayload(constants::payloads::StaticType payloadType) -> bool
Send one compile-time pre-serialized static control payload.
Definition serializer.cpp:282
auto serializeActuatorsState() -> bool
Send an actuator-state payload with a bitpacked byte array.
Definition serializer.cpp:318
auto serializeDetails() -> bool
Send the generated device-details payload using the active serial codec.
Definition serializer.cpp:301
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.
Definition serializer.cpp:343
ClickType
Clickable (like button) click types.
Definition click_types.hpp:36
Defines target-specific pre-serialized static payload bytes for raw and serial transports.