brickpipe 0.3.1__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brickpipe-0.3.1 → brickpipe-0.3.2}/PKG-INFO +2 -2
- {brickpipe-0.3.1 → brickpipe-0.3.2}/README.md +1 -1
- {brickpipe-0.3.1 → brickpipe-0.3.2}/pyproject.toml +1 -1
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe/main.py +2 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/PKG-INFO +2 -2
- {brickpipe-0.3.1 → brickpipe-0.3.2}/LICENSE +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/setup.cfg +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/SOURCES.txt +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/dependency_links.txt +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/entry_points.txt +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/requires.txt +0 -0
- {brickpipe-0.3.1 → brickpipe-0.3.2}/src/brickpipe.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: brickpipe
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A json IPC interface for interacting with pybricks hubs
|
|
5
5
|
License: GNU GENERAL PUBLIC LICENSE
|
|
6
6
|
Version 3, 29 June 2007
|
|
@@ -661,7 +661,7 @@ These commands are sent to the script via `stdin`.
|
|
|
661
661
|
|
|
662
662
|
| `event_type` | Parameters | Description |
|
|
663
663
|
|:-------------------------|:--------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|
|
|
664
|
-
| `start_ble_scanning` | `
|
|
664
|
+
| `start_ble_scanning` | `timeout` : int \| float (required) | Begins bluetooth scanning with a specified timeout. |
|
|
665
665
|
| `connect_to_hub` | `conn_type`: `"ble"` or `"usb"` (required)<br>`ble_address`: string (optional)<br>`ble_hub_name`: string (optional) | Connects to a hub. `ble_address` and `ble_hub_name` are used for filtering bluetooth hubs. |
|
|
666
666
|
| `disconnect_from_hub` | None | Disconnects the currently connected hub. |
|
|
667
667
|
| `recompile_download` | `program_path`: string (required) | Stops any running program, recompiles the specified Python file, and downloads it to the hub. |
|
|
@@ -24,7 +24,7 @@ These commands are sent to the script via `stdin`.
|
|
|
24
24
|
|
|
25
25
|
| `event_type` | Parameters | Description |
|
|
26
26
|
|:-------------------------|:--------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|
|
|
27
|
-
| `start_ble_scanning` | `
|
|
27
|
+
| `start_ble_scanning` | `timeout` : int \| float (required) | Begins bluetooth scanning with a specified timeout. |
|
|
28
28
|
| `connect_to_hub` | `conn_type`: `"ble"` or `"usb"` (required)<br>`ble_address`: string (optional)<br>`ble_hub_name`: string (optional) | Connects to a hub. `ble_address` and `ble_hub_name` are used for filtering bluetooth hubs. |
|
|
29
29
|
| `disconnect_from_hub` | None | Disconnects the currently connected hub. |
|
|
30
30
|
| `recompile_download` | `program_path`: string (required) | Stops any running program, recompiles the specified Python file, and downloads it to the hub. |
|
|
@@ -299,6 +299,8 @@ async def main_loop():
|
|
|
299
299
|
if 'ble_address' in command:
|
|
300
300
|
device_or_address = await BleakScanner.find_device_by_address(
|
|
301
301
|
command.get('ble_address'))
|
|
302
|
+
if device_or_address is None:
|
|
303
|
+
raise TimeoutError
|
|
302
304
|
else:
|
|
303
305
|
device_or_address = await find_ble(name)
|
|
304
306
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: brickpipe
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A json IPC interface for interacting with pybricks hubs
|
|
5
5
|
License: GNU GENERAL PUBLIC LICENSE
|
|
6
6
|
Version 3, 29 June 2007
|
|
@@ -661,7 +661,7 @@ These commands are sent to the script via `stdin`.
|
|
|
661
661
|
|
|
662
662
|
| `event_type` | Parameters | Description |
|
|
663
663
|
|:-------------------------|:--------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|
|
|
664
|
-
| `start_ble_scanning` | `
|
|
664
|
+
| `start_ble_scanning` | `timeout` : int \| float (required) | Begins bluetooth scanning with a specified timeout. |
|
|
665
665
|
| `connect_to_hub` | `conn_type`: `"ble"` or `"usb"` (required)<br>`ble_address`: string (optional)<br>`ble_hub_name`: string (optional) | Connects to a hub. `ble_address` and `ble_hub_name` are used for filtering bluetooth hubs. |
|
|
666
666
|
| `disconnect_from_hub` | None | Disconnects the currently connected hub. |
|
|
667
667
|
| `recompile_download` | `program_path`: string (required) | Stops any running program, recompiles the specified Python file, and downloads it to the hub. |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|