29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
#pragma once
|
|
#include <string_view>
|
|
|
|
namespace tbox::semantic
|
|
{
|
|
// ================= 基础身份 =================
|
|
inline constexpr std::string_view DEVICE_NO = "tbox.device_no";
|
|
inline constexpr std::string_view VEHICLE_ID = "tbox.vehicle_id";
|
|
inline constexpr std::string_view VIN = "tbox.vin";
|
|
|
|
// ================= 云平台 =================
|
|
inline constexpr std::string_view PLATFORM_IP = "tbox.platform_ip";
|
|
inline constexpr std::string_view PLATFORM_PORT = "tbox.platform_port";
|
|
|
|
inline constexpr std::string_view MQTT_IP = "tbox.mqtt_ip";
|
|
inline constexpr std::string_view MQTT_PORT = "tbox.mqtt_port";
|
|
inline constexpr std::string_view MQTT_USERNAME = "tbox.mqtt_username";
|
|
inline constexpr std::string_view MQTT_PASSWORD = "tbox.mqtt_password";
|
|
|
|
// ================= 驾驶舱 =================
|
|
inline constexpr std::string_view COCKPIT_MQTT_IP = "tbox.cockpit_mqtt_ip";
|
|
inline constexpr std::string_view COCKPIT_MQTT_PORT = "tbox.cockpit_mqtt_port";
|
|
|
|
// ================= 协议相关 =================
|
|
inline constexpr std::string_view LOGIN_SEQ = "tbox.login_seq";
|
|
inline constexpr std::string_view LOGIN_SEQ_DATE = "tbox.login_seq_date";
|
|
inline constexpr std::string_view HEARTBEAT_INTERVAL = "tbox.heartbeat_interval";
|
|
} // namespace tbox::semantic
|