kunlang_video/include/serial_AT.hpp

16 lines
340 B
C++
Raw Normal View History

2026-01-04 17:18:24 +08:00
#pragma once
#include "serial_port.h"
// 全局 IMEI读取成功后写入
extern std::string IMEI;
// 初始化 AT 串口(启动线程)
2026-01-04 17:18:24 +08:00
void init_serial_at(const std::string& device, int baudrate);
2026-01-04 17:24:15 +08:00
// 停止 AT 串口停止线程join
void stop_serial_at();
2026-01-05 10:24:18 +08:00
void start_http_server(int port);
void stop_http_server();