meshcore 2.1.16__py3-none-any.whl → 2.1.17__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/ble_cx.py +8 -2
- meshcore/meshcore.py +1 -0
- {meshcore-2.1.16.dist-info → meshcore-2.1.17.dist-info}/METADATA +1 -1
- {meshcore-2.1.16.dist-info → meshcore-2.1.17.dist-info}/RECORD +6 -6
- {meshcore-2.1.16.dist-info → meshcore-2.1.17.dist-info}/WHEEL +0 -0
- {meshcore-2.1.16.dist-info → meshcore-2.1.17.dist-info}/licenses/LICENSE +0 -0
meshcore/ble_cx.py
CHANGED
|
@@ -18,7 +18,6 @@ UART_SERVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"
|
|
|
18
18
|
UART_RX_CHAR_UUID = "6E400002-B5A3-F393-E0A9-E50E24DCCA9E"
|
|
19
19
|
UART_TX_CHAR_UUID = "6E400003-B5A3-F393-E0A9-E50E24DCCA9E"
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
class BLEConnection:
|
|
23
22
|
def __init__(self, address=None, device=None, client=None, pin=None):
|
|
24
23
|
"""
|
|
@@ -113,7 +112,14 @@ class BLEConnection:
|
|
|
113
112
|
except TimeoutError:
|
|
114
113
|
return None
|
|
115
114
|
|
|
116
|
-
|
|
115
|
+
try:
|
|
116
|
+
await self.client.start_notify(UART_TX_CHAR_UUID, self.handle_rx)
|
|
117
|
+
except AttributeError :
|
|
118
|
+
if self.client :
|
|
119
|
+
await self.client.disconnect()
|
|
120
|
+
logger.info("Connection is not established, need to restart it")
|
|
121
|
+
logger.debug("in ble_cx.connect()")
|
|
122
|
+
return None
|
|
117
123
|
|
|
118
124
|
nus = self.client.services.get_service(UART_SERVICE_UUID)
|
|
119
125
|
if nus is None:
|
meshcore/meshcore.py
CHANGED
|
@@ -165,6 +165,7 @@ class MeshCore:
|
|
|
165
165
|
await self.dispatcher.start()
|
|
166
166
|
result = await self.connection_manager.connect()
|
|
167
167
|
if result is None:
|
|
168
|
+
await self.dispatcher.stop()
|
|
168
169
|
raise ConnectionError("Failed to connect to device")
|
|
169
170
|
return await self.commands.send_appstart()
|
|
170
171
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.17
|
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
meshcore/__init__.py,sha256=55PdT8gZ9Lf727s7BdSuCt3lIBlAhRzX28A8i0DHaRc,602
|
|
2
|
-
meshcore/ble_cx.py,sha256=
|
|
2
|
+
meshcore/ble_cx.py,sha256=S5uanBI88Mxwcs1zWbdQGVJ6GC4kdWz8-Z_2aQVpeGI,6864
|
|
3
3
|
meshcore/connection_manager.py,sha256=3U0TWuHDvL5FfwEwXRy5HjlCyV3nsWhhrEC7TVxFzZI,5899
|
|
4
4
|
meshcore/events.py,sha256=ZaVy2cCjujM3--xUDoUZqHZTq09R1rR8y3-_rLL8-fQ,8014
|
|
5
5
|
meshcore/lpp_json_encoder.py,sha256=vyn7z3VYWOo_B9xmCzqblh5xCa0QKWKcMi2eOqw18RE,1875
|
|
6
|
-
meshcore/meshcore.py,sha256=
|
|
6
|
+
meshcore/meshcore.py,sha256=n8fH7AEx7DR8BHOYL_Qex9ns6ACKklNNqYbPnNnvqyE,16110
|
|
7
7
|
meshcore/packets.py,sha256=2soo3H6FEbVdYk-ZQANIM3YpyCwsaIOrB4QIEJLLw0c,1072
|
|
8
8
|
meshcore/parsing.py,sha256=48PQkig-sqvsRlkF9zkvWhJoSq6ERCbGb_aRuCND5NI,4044
|
|
9
9
|
meshcore/reader.py,sha256=mIewSrfsgt-qe-acoxGQncHZhEhRr_3CEZuN1afnr7E,24784
|
|
@@ -15,7 +15,7 @@ meshcore/commands/binary.py,sha256=MVKXrT4pFSlzFkVFLBX988Eh57tRwunw4XPKBumbQNU,4
|
|
|
15
15
|
meshcore/commands/contact.py,sha256=-dRY68xZkDFP6-i53WujyWhEsXZsFRk98B3j3zBzaL4,5860
|
|
16
16
|
meshcore/commands/device.py,sha256=vstyy1crvhGbDgCAtyCWyjj3X8F2CpMw1LFTOwoHh6M,8273
|
|
17
17
|
meshcore/commands/messaging.py,sha256=MIVGM5G8J16qimKjCHdrlEiVJ4g_MsBaZKPvRJHJcLU,8306
|
|
18
|
-
meshcore-2.1.
|
|
19
|
-
meshcore-2.1.
|
|
20
|
-
meshcore-2.1.
|
|
21
|
-
meshcore-2.1.
|
|
18
|
+
meshcore-2.1.17.dist-info/METADATA,sha256=ImPYOzshM7CKAhB-wRgqE3ZoN_0wIwE4Ksk3mRykENg,25317
|
|
19
|
+
meshcore-2.1.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
20
|
+
meshcore-2.1.17.dist-info/licenses/LICENSE,sha256=o62-JWT_C-ZqEtzb1Gl_PPtPr0pVT8KDmgji_Y_bejI,1075
|
|
21
|
+
meshcore-2.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|