Commit bcbc23f3 authored by Pavel Vainerman's avatar Pavel Vainerman

(ModbusMaster): добавил в getInfo() вывод информации о persistent-connection

parent 7c03e4dd
......@@ -253,7 +253,7 @@ UniSetTypes::SimpleInfo* MBTCPMaster::getInfo()
ostringstream inf;
inf << i->info << endl;
inf << "poll: " << iaddr << ":" << port << endl;
inf << "poll: " << iaddr << ":" << port << " pesrsistent-connection=" << ( force_disconnect ? "NO" : "YES" ) << endl;
i->info = inf.str().c_str();
return i._retn();
......
......@@ -502,7 +502,9 @@ const std::string MBTCPMultiMaster::MBSlaveInfo::getShortInfo() const
s << myname << " respond=" << respond
<< " (respond_id=" << respond_id << " respond_invert=" << respond_invert
<< " recv_timeout=" << recv_timeout << " resp_force=" << respond_force
<< " use=" << use << " ignore=" << ignore << " priority=" << priority << ")";
<< " use=" << use << " ignore=" << ignore << " priority=" << priority
<< " persistent-connection=" << !force_disconnect
<< ")";
return std::move(s.str());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment