extend MQTT integration support

This commit is contained in:
John
2022-01-22 15:28:32 +01:00
parent 7e563d5ae9
commit 1e21850a2b
7 changed files with 311 additions and 40 deletions
+3
View File
@@ -615,6 +615,9 @@ bool Message::setPollPriority(size_t priority) {
if (m_usedByCondition && (priority == 0 || priority > POLL_PRIORITY_CONDITION)) {
usePriority = POLL_PRIORITY_CONDITION;
}
if (m_pollPriority != usePriority) {
time(&m_createTime); // mis-use creation time for this update
}
bool ret = m_pollPriority == 0 && usePriority > 0;
m_pollPriority = usePriority;
if (ret || m_pollOrder > g_lastPollOrder+(unsigned int)m_pollPriority) {