prplfoundation/prplMesh

[TASK] Refactor sending ACK message

Closed this issue · 0 comments

Description

Sending ACK message it is one of the main parts of the project. The current implementation is code duplication. It increases the size of the source files.

Exit criteria

  • Write a new method create_ack_message(). The method should create eMessageType::ACK_MESSAGE in cmdu_tx buffer.
  • Replace code duplication on the new method call

Detailed description

Problem statement

Code duplication. This problem increases the source files and looks weird.

Possible solutions

Implement a new method for creation ACK messages, remove code duplication, use the new method in all required places.

Components affected

  • Agent
  • Controller