Skip to content

Commit 0788c1f

Browse files
committed
Update protos to 2.2 and add neighbor_info
1 parent a8057ac commit 0788c1f

6 files changed

Lines changed: 52 additions & 80 deletions

File tree

examples/info_example.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
# call showInfo() just to ensure values are populated
1111
# info = iface.showInfo()
1212

13-
if iface.myInfo:
14-
# print(f'myInfo:{iface.myInfo}')
15-
print(f"firmware_version:{iface.myInfo.firmware_version}")
1613

1714
if iface.nodes:
1815
for n in iface.nodes.values():

meshtastic/admin_pb2.py

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/deviceonly_pb2.py

Lines changed: 14 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meshtastic/mesh_interface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,8 @@ def _handleFromRadio(self, fromRadioBytes):
787787
self.localNode.moduleConfig.remote_hardware.CopyFrom(
788788
fromRadio.moduleConfig.remote_hardware
789789
)
790+
elif fromRadio.moduleConfig.HasField("neighbor_info"):
791+
self.localNode.moduleConfig.neighbor_info.CopyFrom(fromRadio.moduleConfig.neighbor_info)
790792

791793
else:
792794
logging.debug("Unexpected FromRadio payload")

0 commit comments

Comments
 (0)