Valetudo icon indicating copy to clipboard operation
Valetudo copied to clipboard

Extend Dummycloud with TCP miio support

Open Hypfer opened this issue 4 years ago • 0 comments

image

There are three Interfaces with the miio_client. Two of them are UDP. One is TCP

Due to historic reasons, Valetudo only speaks UDP miio. While this isn't a huge issue, it would be nice to also implement TCP miio which seems to be exactly the same but not UDP.

The TCP communication happens on port 80 which also houses the HTTP Server. A PoC demonstrating that it is possible to do both on the same port can be found here: https://github.com/Hypfer/Valetudo/commit/3f5228fcccb1165cb86a1e099fdfdfaed11d26f2#diff-0b8fabd942cd4777c533e2925e3833afa2f95a10c71b179e15cec43546612e31

Apart from that, there's probably a lot of refactoring required, as 80-90% of both TCP and UDP socket will be pretty much identical.

Hypfer avatar Jul 26 '21 18:07 Hypfer