Skip to content

Commit 94933b3

Browse files
committed
Update docs to reflect most recent API changes
1 parent b04a597 commit 94933b3

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

‎docs/get-started.rst‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,31 @@ The application code can query the backlog whenever it needs recent CSI.
8484
8585
pool = espargos.Pool([espargos.Board("192.168.1.2")])
8686
pool.start()
87-
pool.calibrate(duration = 2)
88-
backlog = espargos.CSIBacklog(pool, size = 20)
87+
pool.calibrate(duration=2)
88+
backlog = espargos.CSIBacklog(pool, size=20)
8989
backlog.start()
9090
9191
# Wait for a while to collect some WiFi packets to the backlog...
9292
time.sleep(4)
9393
94-
csi_ht40 = backlog.get_ht40()
94+
csi_ht40 = backlog.get("ht40")
9595
print("Received CSI: ", csi_ht40)
9696
9797
backlog.stop()
9898
pool.stop()
9999
100+
The backlog supports multiple data fields that can be retrieved using the :meth:`~espargos.backlog.CSIBacklog.get` method:
101+
102+
* ``lltf`` - L-LTF CSI data
103+
* ``ht20`` - HT20 CSI data
104+
* ``ht40`` - HT40 CSI data
105+
* ``rssi`` - RSSI values
106+
* ``timestamp`` - Sensor timestamps
107+
* ``host_timestamp`` - Host timestamps
108+
* ``mac`` - Source MAC addresses
109+
110+
You can also use :meth:`~espargos.backlog.CSIBacklog.get_multiple` to retrieve multiple fields atomically.
111+
100112
Advanced Usage
101113
--------------
102114
Check out the source code of our `demo applications <https://github.com/ESPARGOS/pyespargos/tree/main/demos>`_ to learn how to use *pyespargos* in a real-time application.

0 commit comments

Comments
 (0)