2026-01-04 17:18:24 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include "serial_port.h"
|
|
|
|
|
|
|
2026-01-04 17:42:16 +08:00
|
|
|
|
// 全局 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
|
|
|
|
|
2026-01-04 17:42:16 +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();
|