Comments (2)
这的确是个问题... 目前连上后就不会再置为false. 一旦调用API,将进行重试连接. 这个IsConnected() 标记和对方是通的. 后续优化一下.
目前这个库准备要改,API可能会有破坏, 所以移到了这个组织来. 旧的库还在thinkgos下. 最近暂时没有时间.
from go-modbus.
这个问题只有TCP才会存在对端关闭, 只有tcp才会有掉线需求. 像RTU,ASCII, 没有对端关闭一说,只能通过在一定时间内的失败次数来判断掉线. 后续再思考下如果弄比较好.
from go-modbus.
Related Issues (14)
- modbus tcp client支持异步?
- 当读取一个slave禁用(diabled)时,timeout后连线数不断上升。 HOT 4
- 建立连接读取数据一段时间后提示modbus: response transaction id '20' does not match request '21' HOT 14
- 似乎只支持RTS的设置,该如何设置DTR?
- 似乎只支持RTS的设置,该如何设置DTR? HOT 2
- The system cannot find the path specified. HOT 1
- Would you like to fix your Example in README? HOT 1
- Why can't FuncCodeReadCoils be customized? HOT 1
- The port is not being closed HOT 1
- 关于采集后的数据处理请教 HOT 7
- client端,写保持寄存器应增加一个写16位的API,并检查输入字节与数量的关系 HOT 1
- 寄存器的读取目前只支持uint16吗 HOT 4
- Execption response function code bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-modbus.