Compare commits

...

4 Commits

Author SHA1 Message Date
Ben Meadors
eebaa10d13 Regen protos 2023-11-03 07:50:30 -05:00
Ben Meadors
5076119b4f Merge pull request #463 from GUVWAF/AmbientLighting 2023-11-02 14:46:49 -05:00
GUVWAF
e25b183c23 Add getter/setter for AmbientLighting Module 2023-11-02 20:35:57 +01:00
github-actions
236d30f7c1 bump version 2023-10-11 14:59:14 +00:00
6 changed files with 52 additions and 46 deletions

View File

File diff suppressed because one or more lines are too long

View File

@@ -874,6 +874,10 @@ class MeshInterface:
self.localNode.moduleConfig.detection_sensor.CopyFrom(
fromRadio.moduleConfig.detection_sensor
)
elif fromRadio.moduleConfig.HasField("ambient_lighting"):
self.localNode.moduleConfig.ambient_lighting.CopyFrom(
fromRadio.moduleConfig.ambient_lighting
)
else:
logging.debug("Unexpected FromRadio payload")

View File

File diff suppressed because one or more lines are too long

View File

@@ -192,6 +192,8 @@ class Node:
p.set_module_config.neighbor_info.CopyFrom(self.moduleConfig.neighbor_info)
elif config_name == "detection_sensor":
p.set_module_config.detection_sensor.CopyFrom(self.moduleConfig.detection_sensor)
elif config_name == "ambient_lighting":
p.set_module_config.ambient_lighting.CopyFrom(self.moduleConfig.ambient_lighting)
else:
our_exit(f"Error: No valid config with name {config_name}")

View File

@@ -13,7 +13,7 @@ with open("README.md", "r") as fh:
# This call to setup() does all the work
setup(
name="meshtastic",
version="2.2.9",
version="2.2.10",
description="Python API & client shell for talking to Meshtastic devices",
long_description=long_description,
long_description_content_type="text/markdown",