added node message type TIME.

This commit is contained in:
Martin Preuss
2026-03-15 20:21:30 +01:00
parent 5119c38ca6
commit b6f710bd8b
5 changed files with 230 additions and 0 deletions

View File

@@ -230,6 +230,9 @@ const char *AQH_NodeMessage_MsgTypeToChar(uint8_t i)
case AQH_MSG_TYPE_VALUE_SET: return "ValueSet";
case AQH_MSG_TYPE_VALUE_SET_ACK: return "ValueSetAck";
case AQH_MSG_TYPE_VALUE_SET_NACK: return "ValueSetNack";
case AQH_MSG_TYPE_TIME_ANNOUNCE: return "TimeAnnounce";
case AQH_MSG_TYPE_TIME_REQSET: return "TimeSetRequest";
case AQH_MSG_TYPE_TIME_RSPSET: return "TimeSetResponse";
default: return "(unknown)";
}
}
@@ -268,6 +271,10 @@ void AQH_NodeMessage_DumpSpecificToBuffer(const AQH_MESSAGE *msg, GWEN_BUFFER *d
case AQH_MSG_TYPE_VALUE_SET_ACK: AQH_ValueMessage_DumpToBuffer(msg, dbuf, sText); break;
case AQH_MSG_TYPE_VALUE_SET_NACK: AQH_ValueMessage_DumpToBuffer(msg, dbuf, sText); break;
case AQH_MSG_TYPE_TIME_ANNOUNCE: AQH_TimeMessage_DumpToBuffer(msg, dbuf, sText); break;
case AQH_MSG_TYPE_TIME_REQSET: AQH_TimeMessage_DumpToBuffer(msg, dbuf, sText); break;
case AQH_MSG_TYPE_TIME_RSPSET: AQH_TimeMessage_DumpToBuffer(msg, dbuf, sText); break;
case AQH_MSG_TYPE_DEBUG:
case AQH_MSG_TYPE_TWIBUSMEMBER:
default: AQH_NodeMessage_DumpToBuffer(msg, dbuf, sText); break;
@@ -299,6 +306,11 @@ uint32_t AQH_NodeMessage_GetMsgGroup(uint8_t msgType)
case AQH_MSG_TYPE_VALUE_SET_NACK:
return AQH_MSG_TYPEGROUP_VALUES;
case AQH_MSG_TYPE_TIME_ANNOUNCE:
case AQH_MSG_TYPE_TIME_REQSET:
case AQH_MSG_TYPE_TIME_RSPSET:
return AQH_MSG_TYPEGROUP_TIME;
case AQH_MSG_TYPE_NEED_ADDRESS:
case AQH_MSG_TYPE_HAVE_ADDRESS:
case AQH_MSG_TYPE_CLAIM_ADDRESS: