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
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,28 @@ Set the time needed for a character to be transmitted over UART. Used to calcula
49
49
50
50
Enable/disable the sleep command after a UART write. For micropython implementations that uart.write calls uart_wait_tx_done, this sleep can be deactivated. If enabled, after UART write, the application sleeps for (char_wait_duration_us) * (number of command characters).
The function to send command to the sensor and wait for incoming data. Mainly used for test purposes.
55
+
56
+
* arguments:
57
+
-`cmd`: the command to send (ex. '1I!')
58
+
-`timeout_ms` (optional): the time in milliseconds to wait for incoming response after a succesful write command to the sensor.
59
+
-`termination_line` (optional): If _termination_line_ is defined, the function will poll and aggregate incoming messages till the _termination_line_ matches with the input. If not defined, the function will terminate with the first successfully received message.
60
+
* returns:
61
+
A multiline string with all the received messages. If _termination_line_ is not defined, the string is always one line. If no incoming messages received, returns `None`
0 commit comments