finish dz function
This commit is contained in:
@@ -96,11 +96,13 @@ public:
|
||||
double CT1; // 电流变比1
|
||||
double CT2; // 电流变比2
|
||||
|
||||
qvvr_event qvvrevent; //暂态事件
|
||||
//暂态事件
|
||||
qvvr_event qvvrevent;
|
||||
|
||||
//定值list
|
||||
std::list<float> set_values;
|
||||
std::vector<DZ_TAB_STRUCT> dz_info_list; //定值信息列表
|
||||
|
||||
};
|
||||
|
||||
//终端台账
|
||||
@@ -113,8 +115,8 @@ public:
|
||||
int busytimecount; //业务进行计时
|
||||
|
||||
//内部定值list
|
||||
std::list<float> internal_values;
|
||||
std::vector<NameFixValue> &dz_internal_info_list; //内部定值信息列表
|
||||
std::list<ushort> internal_values;
|
||||
std::vector<NameFixValue> dz_internal_info_list; //内部定值信息列表
|
||||
std::vector<DZ_kzz_bit> control_words;
|
||||
|
||||
std::string terminal_id;
|
||||
@@ -515,7 +517,35 @@ void send_reply_to_cloud(int reply_code, const std::string& dev_id, int type);
|
||||
//查guid
|
||||
std::string find_guid_index_from_dev_id(const std::string& dev_id);
|
||||
|
||||
//
|
||||
//内部定值响应
|
||||
bool send_internal_value_reply(const std::string &dev_id, const std::vector<DZ_kzz_bit> &control_words);
|
||||
|
||||
//定值响应
|
||||
bool send_set_value_reply(const std::string &dev_id, unsigned char mp_index, const std::vector<DZ_TAB_STRUCT> &dz_info);
|
||||
|
||||
//保存内部定值描述
|
||||
bool save_internal_info(const std::string &dev_id, const std::vector<NameFixValue> &fixValueList);
|
||||
|
||||
//保存内部定值数值
|
||||
bool save_internal_value(const std::string &dev_id, const std::vector<ushort> &fabsf);
|
||||
|
||||
//保存定值数值
|
||||
bool save_set_value(const std::string &dev_id, unsigned char mp_index, const std::vector<float> &fabsf);
|
||||
|
||||
//发送文件
|
||||
void SendFileWeb(const std::string& strUrl, const std::string& localpath, const std::string& cloudpath, std::string& wavepath);
|
||||
|
||||
//小工具
|
||||
inline std::string trim_cstr(const char* s, size_t n) {
|
||||
if (!s) return {};
|
||||
size_t end = 0;
|
||||
while (end < n && s[end] != '\0') ++end;
|
||||
std::string out(s, s + end);
|
||||
while (!out.empty() && (out.back() == ' ' || out.back() == '\t' || out.back() == '\r' || out.back() == '\n'))
|
||||
out.pop_back();
|
||||
return out;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
extern int g_front_seg_index;
|
||||
extern std::string FRONT_IP;
|
||||
|
||||
Reference in New Issue
Block a user