LSH-Core
Deterministic firmware core for Controllino-based Labo Smart Home nodes
 
Loading...
Searching...
No Matches
static_payloads.hpp File Reference

Defines target-specific pre-serialized static payload bytes for raw and serial transports. More...

#include <stdint.h>
#include "../../internal/etl_array.hpp"
Include dependency graph for static_payloads.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  constants
 Namespace that groups compile-time constants.
 

Enumerations

enum class  StaticType : uint8_t { BOOT , PING_ }
 

Variables

constexpr etl::array< uint8_t, 7 > constants::payloads::JSON_RAW_BOOT_BYTES = {'{', '"', 'p', '"', ':', '4', '}'}
 
constexpr etl::array< uint8_t, 8 > constants::payloads::JSON_SERIAL_BOOT_BYTES = {'{', '"', 'p', '"', ':', '4', '}', '\n'}
 
constexpr etl::array< uint8_t, 4 > constants::payloads::MSGPACK_RAW_BOOT_BYTES = {0x81, 0xA1, 0x70, 0x04}
 
constexpr etl::array< uint8_t, 6 > constants::payloads::MSGPACK_SERIAL_BOOT_BYTES = {0xC0, 0x81, 0xA1, 0x70, 0x04, 0xC0}
 
constexpr etl::array< uint8_t, 7 > constants::payloads::JSON_RAW_PING_BYTES = {'{', '"', 'p', '"', ':', '5', '}'}
 
constexpr etl::array< uint8_t, 8 > constants::payloads::JSON_SERIAL_PING_BYTES = {'{', '"', 'p', '"', ':', '5', '}', '\n'}
 
constexpr etl::array< uint8_t, 4 > constants::payloads::MSGPACK_RAW_PING_BYTES = {0x81, 0xA1, 0x70, 0x05}
 
constexpr etl::array< uint8_t, 6 > constants::payloads::MSGPACK_SERIAL_PING_BYTES = {0xC0, 0x81, 0xA1, 0x70, 0x05, 0xC0}
 

Detailed Description

Defines target-specific pre-serialized static payload bytes for raw and serial transports.

Author
Jacopo Labardi (labodj)
Note
Do not edit manually. Run tools/generate_lsh_protocol.py instead.

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.