Skip to content

Commit 0ebbb39

Browse files
committed
fix CharacteristicBuffer.timeout
1 parent 95d7762 commit 0ebbb39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/_bleio/CharacteristicBuffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ static void raise_error_if_not_connected(bleio_characteristic_buffer_obj_t *self
2525
//| """Accumulates a Characteristic's incoming values in a FIFO buffer."""
2626
//|
2727
//| def __init__(
28-
//| self, characteristic: Characteristic, *, timeout: int = 1, buffer_size: int = 64
28+
//| self, characteristic: Characteristic, *, timeout: float = 1.0, buffer_size: int = 64
2929
//| ) -> None:
3030
//| """Monitor the given Characteristic. Each time a new value is written to the Characteristic
3131
//| add the newly-written bytes to a FIFO buffer.
3232
//|
3333
//| :param Characteristic characteristic: The Characteristic to monitor.
3434
//| It may be a local Characteristic provided by a Peripheral Service, or a remote Characteristic
3535
//| in a remote Service that a Central has connected to.
36-
//| :param int timeout: the timeout in seconds to wait for the first character and between subsequent characters.
36+
//| :param float timeout: the timeout in seconds to wait for the first character and between subsequent characters.
3737
//| :param int buffer_size: Size of ring buffer that stores incoming data coming from client.
3838
//| Must be >= 1."""
3939
//| ...

0 commit comments

Comments
 (0)