-
Notifications
You must be signed in to change notification settings - Fork 50
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
Comments
not sure if this is still helpful, maybe you could solve it by changing line 253 of coapthon/client/coap.py |
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? |
@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. |
@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. |
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.
The text was updated successfully, but these errors were encountered: