2024-10-19 16:02:41 +08:00
|
|
|
#include <signal.h>
|
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
#include <sys/socket.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
#include <iostream>
|
2024-10-22 19:04:25 +08:00
|
|
|
#include <boost/thread/thread.hpp>
|
2024-10-19 16:02:41 +08:00
|
|
|
#include <boost/date_time/posix_time/posix_time.hpp>
|
|
|
|
|
#include <boost/lexical_cast.hpp>
|
2024-10-23 09:22:06 +08:00
|
|
|
#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_qt.hpp"
|
2024-10-19 16:02:41 +08:00
|
|
|
|
|
|
|
|
/***********************************
|
|
|
|
|
*************线程处理函数***********
|
|
|
|
|
************************************/
|
|
|
|
|
|
2024-10-22 19:04:25 +08:00
|
|
|
extern void CheckThread(); //循环检测线程
|
2024-10-19 16:02:41 +08:00
|
|
|
extern void StartMqttClient(); //启动mqtt服务
|
|
|
|
|
extern void SearchThread(); //组播功能, 提供发现设备功能
|
|
|
|
|
extern void RecvUpdateFile(); //更新升级包
|
2024-10-22 19:04:25 +08:00
|
|
|
extern void StartCgiServer(); //启动cgi处理服务端
|
2024-10-19 16:02:41 +08:00
|
|
|
extern void HeartRep();
|
2024-10-22 19:04:25 +08:00
|
|
|
extern void UartStart(); //
|
2024-10-19 16:02:41 +08:00
|
|
|
extern void TestUart();
|
|
|
|
|
extern void WatchDog();
|
|
|
|
|
extern void UartStartWave();
|
2024-10-22 19:04:25 +08:00
|
|
|
extern void StartUdpSys(); //组播通信
|
2024-10-19 16:02:41 +08:00
|
|
|
extern void GetCSQ();
|
|
|
|
|
extern void Dial5G();
|
|
|
|
|
extern void InitModule();
|
|
|
|
|
extern void RunLED();
|