Comments (5)
I am fine adding this, but I will keep the default set to None. As for the python3 branch, I know a few groups who are using it, but I believe only for TCP async clients. Ideally I don't want two branches (just one), but I have been wary to pull the switch quite yet without more people trying it out and reporting their results on both 2.7> and 3.x.
from pymodbus.
Thanks for considering this for integration. Default to None is fine. Regarding Python3: the modbus lib is the final lib blocking the move of my open-source roasting app Artisan to move to Python3. I used the minimialmodbus lib up to now exactly for its Python3 compatibility, but then wanted to add TCP/UDP support and moved to pymodbus as I saw and tested successfully the Python3 branch. Then I discovered the timeout issue on UDP and could solve it only nicely by some monkey patching (class overwriting) and parameter passing (only available in the latest version and not the Python3 branch).
So for me the Python3 branch worked as expected (mostly tested the RTU and UDP part) and I would vote for ONE branch that supports both Python version.
from pymodbus.
Upps. Note that behind myTonino and MAKOMO is the same person, me. Thanks for giving us pymodbus!
from pymodbus.
Fixed with b13c89d
from pymodbus.
I believe the modification above has not been committed properly. It should read, as MAKOMO suggested:
self.socket.settimeout(self.timeout)
but it appears to have been commited as:
self.settimeout(self.timeout)
which deliver a no method error in case the timeout option is passed.
from pymodbus.
Related Issues (20)
- RTU framer --> message HOT 2
- Clean repl from examples etc. HOT 1
- Read data with RTS HOT 6
- Message_Parser example not working on latest pymodbus release HOT 1
- Remove compare old/new encode in framer buildPacket. HOT 1
- Sporadic response decoding failures HOT 5
- Exception on read when no connection (self.transport is None). HOT 6
- Runtime Error when init AsyncModbusTcpClient outside of an running event loop HOT 2
- attached to a different loop HOT 1
- Pymodbus StartAsyncSerialServer serves only 1 result from datastore even when many are requested HOT 1
- Missing TLS certificate validation HOT 7
- `ModbusSerialClient` does not handle `termios.error` on `connect` HOT 2
- Activate use of message.decode for framer ASCII, SOCKET, TLS HOT 1
- client_server_sync_test have become very slow on 3.12 for no reason ?? HOT 9
- off-by-one on rtu server response to a 0x03 request HOT 7
- ModbusServerRequestHandler.execute() `AttributeError: 'dict' object has no attribute 'validate'` HOT 11
- Regression of #1924 HOT 15
- rtu-over-tcp use pymodbus Ask for help HOT 8
- Add execution of actions for WriteMultipleRegistersRequest and WriteMultipleCoilsRequest HOT 10
- Hope to add a method to obtain the client's IP address on hook or callback. HOT 2
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 pymodbus.