You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 94933b3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/get-started.rst
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,19 +84,31 @@ The application code can query the backlog whenever it needs recent CSI.
84
84
85
85
pool = espargos.Pool([espargos.Board("192.168.1.2")])
86
86
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)
89
89
backlog.start()
90
90
91
91
# Wait for a while to collect some WiFi packets to the backlog...
92
92
time.sleep(4)
93
93
94
-
csi_ht40 = backlog.get_ht40()
94
+
csi_ht40 = backlog.get("ht40")
95
95
print("Received CSI: ", csi_ht40)
96
96
97
97
backlog.stop()
98
98
pool.stop()
99
99
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
+
100
112
Advanced Usage
101
113
--------------
102
114
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