mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-21 22:51:41 +01:00
chore(docs): Added additional steps for 0.15.0 if discovery fails (#439)
This commit is contained in:
parent
16abdf850f
commit
9d0d76338d
18
README.md
18
README.md
@ -34,6 +34,24 @@ import broadlink
|
||||
devices = broadlink.discover(timeout=5)
|
||||
```
|
||||
|
||||
You may need to specify `local_ip_address` or `discover_ip_address` if discovery does not return any devices.
|
||||
|
||||
|
||||
Using your machine's IP address with `local_ip_address`
|
||||
```
|
||||
import broadlink
|
||||
|
||||
devices = broadlink.discover(timeout=5, local_ip_address=192.168.0.100)
|
||||
```
|
||||
|
||||
Using your subnet's broadcast address with `discover_ip_address`
|
||||
|
||||
```
|
||||
import broadlink
|
||||
|
||||
devices = broadlink.discover(timeout=5, discover_ip_address=192.168.0.255)
|
||||
```
|
||||
|
||||
Obtain the authentication key required for further communication:
|
||||
```
|
||||
devices[0].auth()
|
||||
|
Loading…
Reference in New Issue
Block a user