Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
bcbc23f3
Commit
bcbc23f3
authored
Aug 27, 2015
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ModbusMaster): добавил в getInfo() вывод информации о persistent-connection
parent
7c03e4dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
MBTCPMaster.cc
extensions/ModbusMaster/MBTCPMaster.cc
+1
-1
MBTCPMultiMaster.cc
extensions/ModbusMaster/MBTCPMultiMaster.cc
+3
-1
No files found.
extensions/ModbusMaster/MBTCPMaster.cc
View file @
bcbc23f3
...
@@ -253,7 +253,7 @@ UniSetTypes::SimpleInfo* MBTCPMaster::getInfo()
...
@@ -253,7 +253,7 @@ UniSetTypes::SimpleInfo* MBTCPMaster::getInfo()
ostringstream
inf
;
ostringstream
inf
;
inf
<<
i
->
info
<<
endl
;
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
();
i
->
info
=
inf
.
str
().
c_str
();
return
i
.
_retn
();
return
i
.
_retn
();
...
...
extensions/ModbusMaster/MBTCPMultiMaster.cc
View file @
bcbc23f3
...
@@ -502,7 +502,9 @@ const std::string MBTCPMultiMaster::MBSlaveInfo::getShortInfo() const
...
@@ -502,7 +502,9 @@ const std::string MBTCPMultiMaster::MBSlaveInfo::getShortInfo() const
s
<<
myname
<<
" respond="
<<
respond
s
<<
myname
<<
" respond="
<<
respond
<<
" (respond_id="
<<
respond_id
<<
" respond_invert="
<<
respond_invert
<<
" (respond_id="
<<
respond_id
<<
" respond_invert="
<<
respond_invert
<<
" recv_timeout="
<<
recv_timeout
<<
" resp_force="
<<
respond_force
<<
" 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
());
return
std
::
move
(
s
.
str
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment