增加了网页服务
This commit is contained in:
@@ -123,8 +123,6 @@ void UpperCommManager::processPeriodicTasks() {
|
||||
//发送次级配电指令 修改后的代码
|
||||
// strJson = getSubDisCmd(m_pm->m_subDisSysCmd);
|
||||
strJson = m_secdistStateMsg.buildMsg(m_pm->m_subDisSysCmd);
|
||||
cout << (int)m_pm->m_subDisSysCmd.depth1 << endl;
|
||||
|
||||
m_pm->sendNotification(m_secdistStateMsg.key_cmd, strJson);
|
||||
//发送仪表电状态
|
||||
m_pm->sendNotification(m_equInsStateMsg.key,m_equInsStateMsg.buildMsg(m_pm->m_subDisSysState));
|
||||
@@ -146,17 +144,4 @@ void UpperCommManager::buildSystemReport() {
|
||||
m_pm->sendNotification(m_liBatStateMsg.key, m_liBatStateMsg.buildMsg(m_pm->m_pmCurrentState.ccustate));
|
||||
m_pm->sendNotification(m_disSysStateMsg.key, m_disSysStateMsg.buildMsg(m_pm->m_currentDisBreakerState));
|
||||
m_pm->sendNotification(m_currentStateMsg.key, m_currentStateMsg.buildMsg(m_pm->m_pmCurrentState));
|
||||
}
|
||||
// bool UpperCommManager::saveStringToJsonFile(const string &strJson, const string &filePath)
|
||||
// {
|
||||
// std::ofstream file(filePath, std::ios::trunc);
|
||||
// if (file.is_open()) {
|
||||
// file << strJson;
|
||||
// file.close();
|
||||
// // std::cout << "字符串已成功保存到文件中。" << std::endl;
|
||||
// return true;
|
||||
// } else {
|
||||
// std::cerr << "无法打开文件!" << std::endl;
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user