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

Truncated answers #29

Open
bobzomer opened this issue May 21, 2020 · 2 comments
Open

Truncated answers #29

bobzomer opened this issue May 21, 2020 · 2 comments

Comments

@bobzomer
Copy link
Contributor

We use CoAPthon3 to communicate with Philips air purifier (see https://github.com/rgerganov/py-air-control/). In some cases, with some models, the CoAP answer is truncated by the library.

We can see in coapthon/client/coap.py, line 239, method receive_datagram:

                datagram, addr = self._socket.recvfrom(1152)

I've cloned the CoAPthon3 library and modified this line to:

                datagram, addr = self._socket.recvfrom(1500)

And now it works properly.

I will make a PR. Would you think possible to accept it and update pip package accordingly?

@Tanganelli
Copy link
Owner

Tanganelli commented May 21, 2020 via email

@rgerganov
Copy link

Any plans to release a new PyPI version with this fix?

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