rudimental version of 'scan result' added.
This commit is contained in:
@@ -305,8 +305,10 @@ std::string BaseLoop::decodeMessage(const std::string& data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcasecmp(cmd[1].c_str(), "RESULT") == 0) {
|
if (strcasecmp(cmd[1].c_str(), "RESULT") == 0) {
|
||||||
//~ m_ebusloop->scan(true);
|
// TODO format scan results
|
||||||
result << "TODO show result";
|
for (size_t i = 0; i < m_commands->sizeScanDB(); i++)
|
||||||
|
result << m_commands->getScanData(i) << std::endl;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -251,7 +251,6 @@ void Commands::storeScanData(const std::string& data)
|
|||||||
m_scanDB.push_back(data);
|
m_scanDB.push_back(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Commands::printCommand(const cmd_t& command) const
|
void Commands::printCommand(const cmd_t& command) const
|
||||||
{
|
{
|
||||||
if (command.size() == 0)
|
if (command.size() == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user