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?
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, methodreceive_datagram:I've cloned the CoAPthon3 library and modified this line to:
And now it works properly.
I will make a PR. Would you think possible to accept it and update pip package accordingly?