meshcore 0.4__tar.gz → 0.4.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.
- {meshcore-0.4 → meshcore-0.4.2}/PKG-INFO +1 -1
- {meshcore-0.4 → meshcore-0.4.2}/pyproject.toml +1 -1
- {meshcore-0.4 → meshcore-0.4.2}/src/meshcore/meshcore.py +10 -2
- {meshcore-0.4 → meshcore-0.4.2}/LICENSE +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/README.md +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/ble_t1000_infos.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/ble_t1000_msg.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/mepo_mc_gps.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/serial_contacts.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/serial_infos.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/serial_msg.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/serial_repeater_status.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/tcp_mchome_contacts.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/tcp_mchome_infos.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/tcp_mchome_msg.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/examples/tcp_mchome_readmsgs.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/src/meshcore/__init__.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/src/meshcore/ble_cx.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/src/meshcore/serial_cx.py +0 -0
- {meshcore-0.4 → meshcore-0.4.2}/src/meshcore/tcp_cx.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: meshcore
|
|
3
|
-
Version: 0.4
|
|
3
|
+
Version: 0.4.2
|
|
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
|
|
@@ -233,9 +233,12 @@ class MeshCore:
|
|
|
233
233
|
async def send_device_qeury(self):
|
|
234
234
|
return await self.send(b"\x16\x03");
|
|
235
235
|
|
|
236
|
-
async def send_advert(self):
|
|
236
|
+
async def send_advert(self, flood=False):
|
|
237
237
|
""" Make the node send an advertisement """
|
|
238
|
-
|
|
238
|
+
if flood :
|
|
239
|
+
return await self.send(b"\x07\x01")
|
|
240
|
+
else :
|
|
241
|
+
return await self.send(b"\x07")
|
|
239
242
|
|
|
240
243
|
async def set_name(self, name):
|
|
241
244
|
""" Changes the name of the node """
|
|
@@ -345,6 +348,11 @@ class MeshCore:
|
|
|
345
348
|
printerr ("Timeout ...")
|
|
346
349
|
return False
|
|
347
350
|
|
|
351
|
+
async def send_logout(self, dst):
|
|
352
|
+
self.login_resp = asyncio.Future()
|
|
353
|
+
data = b"\x1d" + dst
|
|
354
|
+
return await self.send(data)
|
|
355
|
+
|
|
348
356
|
async def send_statusreq(self, dst):
|
|
349
357
|
self.status_resp = asyncio.Future()
|
|
350
358
|
data = b"\x1b" + dst
|
|
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
|