-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename messageId into messageCounter #9688
Conversation
effb14e
to
3eae1d1
Compare
3eae1d1
to
d7c4e2d
Compare
d7c4e2d
to
a6231d2
Compare
a6231d2
to
e8c3ec1
Compare
Size increase report for "gn_qpg-example-build" from 29e6bcd
Full report output
|
Size increase report for "esp32-example-build" from 29e6bcd
Full report output
|
Size increase report for "nrfconnect-example-build" from 29e6bcd
Full report output
|
@@ -150,36 +150,36 @@ uint64_t ReliableMessageContext::GetActiveRetransmitTimeoutTick() | |||
* @note | |||
* This message is part of the CHIP Reliable Messaging protocol. | |||
* | |||
* @param[in] AckMsgId The msgId of incoming Ack message. | |||
* @param[in] AckMessageCounter The messageCounter of incoming Ack message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-existing, somewhat, but this is really confusing. This is not the actual message counter of the ack message. It's the message counter being acked. In spec terms, this is the "Acknowledged Message Counter" field.
Please do a followup to clean up the documentation here, or let me know once this PR merges and I can do it.
@@ -2177,7 +2177,7 @@ using CHIP_ERROR = ::chip::ChipError; | |||
* @def CHIP_ERROR_MESSAGE_ID_OUT_OF_WINDOW | |||
* | |||
* @brief | |||
* The message id of the received message is out of receiving window | |||
* The message counter of the received message is out of receiving window | |||
*/ | |||
#define CHIP_ERROR_MESSAGE_ID_OUT_OF_WINDOW CHIP_CORE_ERROR(0xc7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followup: Should change the name of this error too?
@@ -150,36 +150,37 @@ uint64_t ReliableMessageContext::GetActiveRetransmitTimeoutTick() | |||
* @note | |||
* This message is part of the CHIP Reliable Messaging protocol. | |||
* | |||
* @param[in] AckMsgId The msgId of incoming Ack message. | |||
* @param[in] ackMessageCounter The messageCounter of incoming Ack message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the "Acknowledged Message Counter" of the incoming message, not the "Message Counter", right?
Pre-existing; please either do a followup to fix this documentation to be less confusing or let me know when this merges and I will.
@@ -151,11 +151,11 @@ class ReliableMessageMgr | |||
* | |||
* @param[in] rc A pointer to the ExchangeContext object. | |||
* | |||
* @param[in] msgId message ID which has been acked. | |||
* @param[in] messageCounter message ID which has been acked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param[in] messageCounter message ID which has been acked. | |
* @param[in] messageCounter message counter which has been acked. |
Problem
MessageCounter
is the official name in the specs.Change overview
This PR is generated by following commands:
Testing