Implements the data serialization logic for sending messages to lsh-bridge.
More...
#include "communication/serializer.hpp"#include <stddef.h>#include "communication/constants/config.hpp"#include "communication/constants/protocol.hpp"#include "communication/bridge_serial.hpp"#include "communication/msgpack_serial_framing.hpp"#include "config/static_config.hpp"#include "device/actuator_manager.hpp"#include "device/clickable_manager.hpp"#include "internal/user_config_bridge.hpp"#include "peripherals/input/clickable.hpp"#include "peripherals/output/actuator.hpp"#include "util/debug/debug.hpp"
Namespaces | |
| namespace | Serializer |
| Provide functions to emit bridge payloads with the active serial codec. | |
Functions | |
| auto | Serializer::serializeStaticPayload (constants::payloads::StaticType payloadType) -> bool |
| Send one compile-time pre-serialized static control payload. | |
| auto | Serializer::serializeDetails () -> bool |
| Send the generated device-details payload using the active serial codec. | |
| auto | Serializer::serializeActuatorsState () -> bool |
| Send an actuator-state payload with a bitpacked byte array. | |
| 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. | |
Implements the data serialization logic for sending messages to lsh-bridge.
Copyright 2026 Jacopo Labardi
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.