finish add interface
This commit is contained in:
@@ -1493,7 +1493,7 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
std::string payload(payloadBytes.begin(), payloadBytes.end());
|
||||
|
||||
// 定义类似New_MachMessage的结构体
|
||||
struct RunningInformation {
|
||||
/*struct RunningInformation {
|
||||
std::string Time;
|
||||
std::string CpuLoad;
|
||||
std::string FreeMemory;
|
||||
@@ -1504,7 +1504,8 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
std::string SntpTimeSync;
|
||||
std::string CloudTimeSync;
|
||||
std::string SignalStrength;
|
||||
} result;
|
||||
} result;*/
|
||||
RunningInformation result;
|
||||
|
||||
// 辅助函数:去除字符串两端的引号
|
||||
auto trimQuotes = [](const std::string& str) -> std::string {
|
||||
@@ -1896,7 +1897,7 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
std::string payload(payloadBytes.begin(), payloadBytes.end());
|
||||
|
||||
// 定义存储装置版本信息的结构体
|
||||
struct DeviceVersionInfo {
|
||||
/*struct DeviceVersionInfo {
|
||||
std::string BaseModel; // 1: 装置基础型号
|
||||
std::string CloudProtocolVer; // 2: 云服务协议版本
|
||||
std::string AppVersion; // 3: 应用程序版本号
|
||||
@@ -1924,7 +1925,8 @@ void process_received_message(string mac, string id,const char* data, size_t len
|
||||
unsigned int CommProtocols = 0; // 51: 投入的通讯协议
|
||||
unsigned int TimeSyncMethods = 0;// 52: 投入的对时方式
|
||||
unsigned int DeviceFunctions = 0;// 53: 装置功能配置
|
||||
} versionInfo;
|
||||
} versionInfo;*/
|
||||
DeviceVersionInfo versionInfo;
|
||||
|
||||
// 分割字段
|
||||
std::vector<std::string> fields;
|
||||
|
||||
Reference in New Issue
Block a user