Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
fixup! agent: Add agent_ucc_listener implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
morantr committed Nov 7, 2019
1 parent 4bda32e commit 1849bfd
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions agent/src/beerocks/slave/agent_ucc_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ std::string agent_ucc_listener::fill_version_reply_string()
*/
void agent_ucc_listener::clear_configuration()
{
// TODO
// TODO implement clearing of agent configuration.
// As part of task: https://github.com/prplfoundation/prplMesh/issues/336
}

/**
Expand All @@ -83,7 +84,7 @@ Socket *agent_ucc_listener::get_dev_send_1905_destination_socket(const std::stri
std::shared_ptr<uint8_t> agent_ucc_listener::get_buffer_filled_with_cmdu()
{
// Currently, no such buffer on agent side.
return std::shared_ptr<uint8_t>();
return std::shared_ptr<uint8_t>(nullptr);
}

/**
Expand All @@ -106,12 +107,11 @@ bool agent_ucc_listener::send_cmdu_to_destination(Socket *sd, ieee1905_1::CmduMe
}

/**
* @brief Parse bss_info string into bss_info_conf_struct.
* @brief Handle DEV_SET_CONFIG command. Parse the command and save the parameters on the agent.
*
* @param[in] bss_info_str String containing bss info configuration.
* @param[out] bss_info_conf Controller database struct filled with configuration.
* @param[in] params Command parameters.
* @param[out] err_string Contains an error description if the function fails.
* @return al_mac on success, empty string if not.
* @return true if successful, false if not.
*/
bool agent_ucc_listener::handle_dev_set_config(std::unordered_map<std::string, std::string> &params,
std::string &err_string)
Expand All @@ -127,7 +127,8 @@ bool agent_ucc_listener::handle_dev_set_config(std::unordered_map<std::string, s
return false;
}

// TODO
// TODO implement seting of agent configuration.
// As part of task: https://github.com/prplfoundation/prplMesh/issues/336

return true;
}

0 comments on commit 1849bfd

Please sign in to comment.