Skip to content
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

Response packet size can't be bigger than 1500 #45

Open
Kevin0626 opened this issue Oct 2, 2022 · 4 comments
Open

Response packet size can't be bigger than 1500 #45

Kevin0626 opened this issue Oct 2, 2022 · 4 comments

Comments

@Kevin0626
Copy link

I used the coapthon as the client to send GET request, the server side sent a package a little bigger than 1500. then only partial data available in the response.payload.

Any suggestions on how to solve it is appreciated.

@zr4in
Copy link

zr4in commented Mar 29, 2024

not sure if this is still helpful, maybe you could solve it by changing line 253 of coapthon/client/coap.py

@michaelschefczyk
Copy link

michaelschefczyk commented Apr 20, 2024

Thank you very much @zr4in! Please be so kind to indicate how I would do this, as I have no knowledge about pip. I have the file in /usr/local/lib/python3.11/dist-packages/coapthon/client/coap.py I can also edit the value from 1500 to 2000 - but that does not have an impact. Changing settings on the Philips device does work, however requesting the status does time out. Can I / do I need to install the changed py-file locally? Do I need to clone at github and modify there?

@zr4in
Copy link

zr4in commented Apr 23, 2024

@michaelschefczyk hi there. If there is only one place(not sure about this) in the original code resticts the package size to 1500(as we already know: coapthon/client/coap.py), then I think changing it to 2000 should work. I'm also new to this project. If having any progress I'll contact you.

@zr4in
Copy link

zr4in commented Apr 23, 2024

@michaelschefczyk Apologies, I mistook you for Kevin earlier. I'm not sure if the size of the package is the reason for your request timing out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants