mirror of
https://github.com/mjg59/python-broadlink.git
synced 2024-11-14 11:30:14 +01:00
Update documentation to cover RF packets
RF packets behave identically to IR packets, so update the docs to match
This commit is contained in:
parent
989009e21f
commit
925742768d
@ -23,13 +23,13 @@ Enter learning mode:
|
|||||||
devices[0].enter_learning()
|
devices[0].enter_learning()
|
||||||
```
|
```
|
||||||
|
|
||||||
Obtain an IR packet while in learning mode:
|
Obtain an IR or RF packet while in learning mode:
|
||||||
```
|
```
|
||||||
ir_packet = devices[0].check_data()
|
ir_packet = devices[0].check_data()
|
||||||
```
|
```
|
||||||
(This will return None if the device does not have a packet to return)
|
(This will return None if the device does not have a packet to return)
|
||||||
|
|
||||||
Send an IR packet:
|
Send an IR or RF packet:
|
||||||
```
|
```
|
||||||
devices[0].send_data(ir_packet)
|
devices[0].send_data(ir_packet)
|
||||||
```
|
```
|
||||||
|
@ -132,5 +132,4 @@ Todo
|
|||||||
----
|
----
|
||||||
|
|
||||||
* Support for other devices using the Broadlink protocol (various smart home devices)
|
* Support for other devices using the Broadlink protocol (various smart home devices)
|
||||||
* Verify whether RF learning uses the same information. The first 4 bytes of the response packet may indicate the type of response that was learned, and the first 4 bytes of the payload may provide that back to the Broadlink on sending. Alternatively, this information may be embedded in the response data already.
|
|
||||||
* Figure out what the format of the data packets actually is.
|
* Figure out what the format of the data packets actually is.
|
Loading…
Reference in New Issue
Block a user