Git Product home page Git Product logo

Comments (2)

thinkgos avatar thinkgos commented on June 5, 2024

这的确是个问题... 目前连上后就不会再置为false. 一旦调用API,将进行重试连接. 这个IsConnected() 标记和对方是通的. 后续优化一下.

目前这个库准备要改,API可能会有破坏, 所以移到了这个组织来. 旧的库还在thinkgos下. 最近暂时没有时间.

from go-modbus.

thinkgos avatar thinkgos commented on June 5, 2024

这个问题只有TCP才会存在对端关闭, 只有tcp才会有掉线需求. 像RTU,ASCII, 没有对端关闭一说,只能通过在一定时间内的失败次数来判断掉线. 后续再思考下如果弄比较好.

from go-modbus.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.