sweeper_video/include/serial_AT.hpp
2026-01-22 15:37:26 +08:00

27 lines
553 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "serial_port.h"
// 全局 IMEI读取成功后写入
extern std::string IMEI;
struct RadioInfo
{
int rsrp = -999; // dBm
int rsrq = -999; // dB
float sinr = -999; // dB
std::string rat; // LTE / NR5G / etc.
std::string band;
};
extern RadioInfo g_radio_info;
// 初始化 AT 串口(启动线程)
void init_serial_at(const std::string& device, int baudrate);
// 停止 AT 串口停止线程join
void stop_serial_at();
void start_http_server(int port);
void stop_http_server();