22#ifndef LSH_CORE_COMMUNICATION_CONSTANTS_STATIC_PAYLOADS_HPP
23#define LSH_CORE_COMMUNICATION_CONSTANTS_STATIC_PAYLOADS_HPP
26#include "../../internal/etl_array.hpp"
28namespace constants::payloads
30 enum class StaticType : uint8_t
37 inline constexpr etl::array<uint8_t, 7> JSON_RAW_BOOT_BYTES = {
'{',
'"',
'p',
'"',
':',
'4',
'}'};
38 inline constexpr etl::array<uint8_t, 8> JSON_SERIAL_BOOT_BYTES = {
'{',
'"',
'p',
'"',
':',
'4',
'}',
'\n'};
39 inline constexpr etl::array<uint8_t, 4> MSGPACK_RAW_BOOT_BYTES = {0x81, 0xA1, 0x70, 0x04};
40 inline constexpr etl::array<uint8_t, 6> MSGPACK_SERIAL_BOOT_BYTES = {0xC0, 0x81, 0xA1, 0x70, 0x04, 0xC0};
43 inline constexpr etl::array<uint8_t, 7> JSON_RAW_PING_BYTES = {
'{',
'"',
'p',
'"',
':',
'5',
'}'};
44 inline constexpr etl::array<uint8_t, 8> JSON_SERIAL_PING_BYTES = {
'{',
'"',
'p',
'"',
':',
'5',
'}',
'\n'};
45 inline constexpr etl::array<uint8_t, 4> MSGPACK_RAW_PING_BYTES = {0x81, 0xA1, 0x70, 0x05};
46 inline constexpr etl::array<uint8_t, 6> MSGPACK_SERIAL_PING_BYTES = {0xC0, 0x81, 0xA1, 0x70, 0x05, 0xC0};
@ PING_
Ping or heartbeat payload.
@ BOOT
Controller boot notification and re-sync trigger. Does not carry version metadata.