vnode 0.1.9__tar.gz → 0.1.10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vnode
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Summary: Virtual Meshtastic node using mudp transport and meshdb storage.
5
5
  License-Expression: GPL-3.0-only
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "vnode"
3
- version = "0.1.9"
3
+ version = "0.1.10"
4
4
  description = "Virtual Meshtastic node using mudp transport and meshdb storage."
5
5
  authors = [
6
6
  {name = "Ben Lipsey",email = "ben@pdxlocations.com"}
@@ -367,8 +367,13 @@ class VirtualNode:
367
367
  if getattr(conn, "socket", None) is None:
368
368
  conn.setup_multicast(self.config.udp.mcast_group, int(self.config.udp.mcast_port))
369
369
 
370
- def send_nodeinfo(self, destination: int = BROADCAST_NUM) -> int:
371
- return self._send_nodeinfo(destination)
370
+ def send_nodeinfo(
371
+ self,
372
+ destination: int = BROADCAST_NUM,
373
+ *,
374
+ want_response: bool = False,
375
+ ) -> int:
376
+ return self._send_nodeinfo(destination, want_response=want_response)
372
377
 
373
378
  def _send_nodeinfo(
374
379
  self,
@@ -376,6 +381,7 @@ class VirtualNode:
376
381
  *,
377
382
  request_id: Optional[int] = None,
378
383
  want_ack: bool = False,
384
+ want_response: bool = False,
379
385
  ) -> int:
380
386
  user = mesh_pb2.User(
381
387
  id=self.config.node_id,
@@ -392,6 +398,7 @@ class VirtualNode:
392
398
  data.payload = user.SerializeToString()
393
399
  data.source = self.node_num
394
400
  data.dest = int(destination)
401
+ data.want_response = bool(want_response)
395
402
  if request_id is not None:
396
403
  data.request_id = int(request_id)
397
404
  packet_id = self._send_data(
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes