python-miio
python-miio copied to clipboard
Allow subnet to be specified for broadcast
This is to address issue #584 - discover doesn't work on Windows unless you specify the correct interface's subnet.
Usage:
> py -m miio.vacuum_cli discover --handshake 1 --subnet 192.168.4.255
INFO:miio.miioprotocol:Sending discovery to 192.168.4.255 with timeout of 5s..
INFO:miio.miioprotocol: IP 192.168.4.1 (ID: 13e7927b) - token: b'...'
Closes #584