1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-22 07:00:12 +01:00

chore(docs): Added additional steps for 0.15.0 if discovery fails (#439)

This commit is contained in:
Timothy Stewart 2020-10-18 02:47:43 -05:00 committed by GitHub
parent 16abdf850f
commit 9d0d76338d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,24 @@ import broadlink
devices = broadlink.discover(timeout=5) 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: Obtain the authentication key required for further communication:
``` ```
devices[0].auth() devices[0].auth()