-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify server implementation. #1071
Conversation
@dhoomakethu you might want to check this with your setup before it gets merged. |
Will do it today |
Not sure if this is being handled in a different branch but can't run the serial version of client
|
REPL serial client also seems to be having issues.
|
Interesting, let me have a look. |
The latter is because you should use slave= not unit= as pr documentation |
I could get the serial client example working
however the server threw this error
When run against basic sync client example
|
I will fix this once you merge this branch to |
I am trying to debug the problems. I saw the validate error quite a while ago, but thought it was gone. |
And let me see if I can add an Exception if unit= is used. |
How about we implicitly use |
Async client errors
|
that is another possibility, let me see what I can come up with. I will add some commits here and request a new review when ready. |
The "validate" is very interesting it happens only serial comm. But I can see that tcp have a problem with the rtuframer, which should be ok. But at least I can reproduce the problems now, I will fix it and get back to you. |
7a90083
to
80bf4c3
Compare
80bf4c3
to
093bf69
Compare
093bf69
to
80ed3d3
Compare
@dhoomakethu I think I have solved all the problems you saw and a lot more, there was quite a number of small errors in the library code. Furthermore I rewrote text_examples.py to give a better coverage. |
@janiversen I will give this a try over the weekend. Please do not wait for me if you are comfortable with the changes, we can capture any new findings as separate github issues or enhancements. |
Sounds like a good plan, looking forward to hear about your findings. I am working on getting TLS to work in test (adding self-signed certificates) and after that I will write a mock to simulate from serial_asyncio. |
Remove sync. server implementation but keep StartServer as well as StartAsyncServer to allow sync. application to spin up a server.
Changed Async StartServer to StartAsyncServer to differentiate.
Moved all external symbols to init.py to allow consistent implementation independent access for applications.