meshcore 2.1.14__py3-none-any.whl → 2.1.15__py3-none-any.whl
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.
Potentially problematic release.
This version of meshcore might be problematic. Click here for more details.
- meshcore/commands/contact.py +7 -2
- {meshcore-2.1.14.dist-info → meshcore-2.1.15.dist-info}/METADATA +1 -1
- {meshcore-2.1.14.dist-info → meshcore-2.1.15.dist-info}/RECORD +5 -6
- meshcore/commands/.contact.py.swp +0 -0
- {meshcore-2.1.14.dist-info → meshcore-2.1.15.dist-info}/WHEEL +0 -0
- {meshcore-2.1.14.dist-info → meshcore-2.1.15.dist-info}/licenses/LICENSE +0 -0
meshcore/commands/contact.py
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -9,14 +9,13 @@ meshcore/parsing.py,sha256=48PQkig-sqvsRlkF9zkvWhJoSq6ERCbGb_aRuCND5NI,4044
|
|
|
9
9
|
meshcore/reader.py,sha256=mIewSrfsgt-qe-acoxGQncHZhEhRr_3CEZuN1afnr7E,24784
|
|
10
10
|
meshcore/serial_cx.py,sha256=-kaqnqk7Ydufu2DECFfPDv4Xs-7gHUBuz8v0xf8fvvE,3969
|
|
11
11
|
meshcore/tcp_cx.py,sha256=05YRVMnjY5aVBTJcHa0uG4VfFKGbV6hQ1pPIsJg4CDI,4227
|
|
12
|
-
meshcore/commands/.contact.py.swp,sha256=ukLHeYjDX9dKOGMyuN3BNJCFrTvgD5y1X0vj1Lp0j5U,24576
|
|
13
12
|
meshcore/commands/__init__.py,sha256=NNmkTEcL-DLyuwKLUagEzpqe3C6ui2tETbu_mUd4p-I,441
|
|
14
13
|
meshcore/commands/base.py,sha256=0bDHcNGlKoej03xJqzo_wL5ctoPQU5kcK1Ca5sZh1pk,7097
|
|
15
14
|
meshcore/commands/binary.py,sha256=MVKXrT4pFSlzFkVFLBX988Eh57tRwunw4XPKBumbQNU,4890
|
|
16
|
-
meshcore/commands/contact.py,sha256=
|
|
15
|
+
meshcore/commands/contact.py,sha256=MZ-MqUElkPhpnbMtVW-8MZoopPjjZxI05WvzOv3dB6E,6516
|
|
17
16
|
meshcore/commands/device.py,sha256=vstyy1crvhGbDgCAtyCWyjj3X8F2CpMw1LFTOwoHh6M,8273
|
|
18
17
|
meshcore/commands/messaging.py,sha256=MIVGM5G8J16qimKjCHdrlEiVJ4g_MsBaZKPvRJHJcLU,8306
|
|
19
|
-
meshcore-2.1.
|
|
20
|
-
meshcore-2.1.
|
|
21
|
-
meshcore-2.1.
|
|
22
|
-
meshcore-2.1.
|
|
18
|
+
meshcore-2.1.15.dist-info/METADATA,sha256=BvGIAxqFglY72AXQRd4X2uuzpZrKsKeXvM3T0RH-MGc,25317
|
|
19
|
+
meshcore-2.1.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
+
meshcore-2.1.15.dist-info/licenses/LICENSE,sha256=o62-JWT_C-ZqEtzb1Gl_PPtPr0pVT8KDmgji_Y_bejI,1075
|
|
21
|
+
meshcore-2.1.15.dist-info/RECORD,,
|
|
Binary file
|
|
File without changes
|
|
File without changes
|