-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Responses with newlines #132
Comments
Hi Bernhard, I'd have to dig into this with some tests. I would think what you've got should work. Not sure why it's not. I wonder what happens if you try:
Here, instead of relying on the RegEx to work, I explicitly check the length and end delimiter for the incoming packet. The caveat here is that you won't get the (Incidentally, this will become easier when I implement #89.) |
I got a device which sends upon a request things like this:
Every line is 168 bytes long. If I send a request to the device using the following code
I'd expect it to read the all the lines. However, when i inspect the response
I only get the last line ("Done\r\n") but not the other ones. I fiddled out, that it seems, that responses are broken up when a newline is read from the device. Is there any way to work around this?
With best regards
Bernhard
The text was updated successfully, but these errors were encountered: