meshcore 2.1.14__tar.gz → 2.1.15__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.
- {meshcore-2.1.14 → meshcore-2.1.15}/PKG-INFO +1 -1
- {meshcore-2.1.14 → meshcore-2.1.15}/pyproject.toml +1 -1
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/contact.py +7 -2
- meshcore-2.1.14/src/meshcore/commands/.contact.py.swp +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/.github/python-test.yml +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/.gitignore +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/LICENSE +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/README.md +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_chat.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_pin_pairing_example.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_private_key_export.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_chan_msg.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_custom_vars.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_infos.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_msg.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_msg_retries.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/ble_t1000_set_cv.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/connection_events_example.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/mepo_mc_gps.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/pubsub_example.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/rf_packet_monitor.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_battery_monitor.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_channel_manager.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_chat.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_contacts.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_infos.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_msg.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_repeater_status.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_repeater_telemetry.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/serial_trace.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_chat.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_login_status.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_mchome_contacts.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_mchome_infos.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_mchome_msg.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/examples/tcp_mchome_readmsgs.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/pytest.ini +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/__init__.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/ble_cx.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/__init__.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/base.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/binary.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/device.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/commands/messaging.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/connection_manager.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/events.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/lpp_json_encoder.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/meshcore.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/packets.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/parsing.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/reader.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/serial_cx.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/src/meshcore/tcp_cx.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/README.md +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/test_ble_connection.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/test_ble_pin_pairing.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/test_meshcore_ble_pin.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/unit/test_commands.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/unit/test_events.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/unit/test_private_key_export.py +0 -0
- {meshcore-2.1.14 → meshcore-2.1.15}/tests/unit/test_reader.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.15
|
|
4
4
|
Summary: Base classes for communicating with meshcore companion radios
|
|
5
5
|
Project-URL: Homepage, https://github.com/fdlamotte/meshcore_py
|
|
6
6
|
Project-URL: Issues, https://github.com/fdlamotte/meshcore_py/issues
|
|
@@ -19,6 +19,7 @@ class ContactCommands(CommandHandlerBase):
|
|
|
19
19
|
# wait first event
|
|
20
20
|
res = await self.send(data)
|
|
21
21
|
timeout = 5
|
|
22
|
+
contact_nb = 0
|
|
22
23
|
# Inline wait for events to continue waiting for CONTACTS event
|
|
23
24
|
# while receiving NEXT_CONTACTs (or it might be missed over serial)
|
|
24
25
|
try:
|
|
@@ -26,7 +27,7 @@ class ContactCommands(CommandHandlerBase):
|
|
|
26
27
|
futures = []
|
|
27
28
|
for event_type in [EventType.ERROR, EventType.NEXT_CONTACT, EventType.CONTACTS] :
|
|
28
29
|
future = asyncio.create_task(
|
|
29
|
-
self.dispatcher.wait_for_event(event_type, {}, timeout)
|
|
30
|
+
self.dispatcher.wait_for_event(event_type, {}, timeout=timeout)
|
|
30
31
|
)
|
|
31
32
|
futures.append(future)
|
|
32
33
|
|
|
@@ -50,10 +51,14 @@ class ContactCommands(CommandHandlerBase):
|
|
|
50
51
|
if event:
|
|
51
52
|
if event.type == EventType.NEXT_CONTACT:
|
|
52
53
|
if anim:
|
|
54
|
+
contact_nb = contact_nb+1
|
|
53
55
|
print(".", end="", flush=True)
|
|
54
56
|
else: # Done or Error ... cancel pending and return
|
|
55
57
|
if anim:
|
|
56
|
-
|
|
58
|
+
if event.type == EventType.CONTACTS:
|
|
59
|
+
print ((len(event.payload)-contact_nb)*"." + " Done")
|
|
60
|
+
else :
|
|
61
|
+
print(" Error")
|
|
57
62
|
for future in pending:
|
|
58
63
|
future.cancel()
|
|
59
64
|
return event
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|