2024-10-23 22:25:03 +08:00
|
|
|
// #include <signal.h>
|
|
|
|
|
// #include <sys/ioctl.h>
|
|
|
|
|
// #include <sys/socket.h>
|
|
|
|
|
// #include <unistd.h>
|
|
|
|
|
// #include <fstream>
|
|
|
|
|
// #include <iostream>
|
|
|
|
|
// #include <boost/thread/thread.hpp>
|
|
|
|
|
// #include <boost/date_time/posix_time/posix_time.hpp>
|
|
|
|
|
// #include <boost/lexical_cast.hpp>
|
|
|
|
|
// #include "common/global.hpp"
|
|
|
|
|
// #include "common/common_func.hpp"
|
|
|
|
|
// #include "mqttclient/mqtt_client.h"
|
|
|
|
|
// #include "localserver/local_server.hpp"
|
|
|
|
|
// #include "utility/search_dev.hpp"
|
|
|
|
|
// #include "utility/tcp_cgi.hpp"
|
|
|
|
|
// #include "utility/udp_scan.hpp"
|
2024-10-19 16:02:41 +08:00
|
|
|
|
|
|
|
|
/***********************************
|
|
|
|
|
*************线程处理函数***********
|
|
|
|
|
************************************/
|
|
|
|
|
|
2024-10-23 22:25:03 +08:00
|
|
|
void CheckThread(); //循环检测线程
|
|
|
|
|
void StartMqttClient(); //启动mqtt服务
|
|
|
|
|
void SearchThread(); //组播功能, 提供发现设备功能
|
|
|
|
|
void StartCgiServer(); //启动cgi处理服务端
|
|
|
|
|
void HeartRep();
|
|
|
|
|
void UartStart(); //
|
|
|
|
|
void TestUart();
|
|
|
|
|
void UartStartWave();
|
|
|
|
|
void StartUdpSys(); //组播通信
|
|
|
|
|
void GetCSQ();
|
|
|
|
|
void Dial5G();
|
|
|
|
|
void InitModule();
|
|
|
|
|
void RunLED();
|
2024-10-25 18:50:17 +08:00
|
|
|
void RecvUpdateFile();
|