Skip to content

Commit

Permalink
Configure wifi led
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Jul 9, 2024
1 parent 486a85b commit dc7f2e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions runusb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ def setup_usercode_logging() -> None:
username=mqtt_config.username,
password=mqtt_config.password,
connected_topic=f"{mqtt_config.topic_prefix}/connected",
connected_callback=lambda: LED_CONTROLLER.set_wifi(True),
disconnected_callback=lambda: LED_CONTROLLER.set_wifi(False),
)

handler.setLevel(logging.INFO)
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ url = https://github.com/sourcebots/runusb
python_requires = >=3.8
packages = find:
install_requires =
logger-extras==0.4.0
logger-extras==0.4.1
rpi.GPIO==0.7.1

[options.extras_require]
mqtt = logger-extras[mqtt]==0.4.0
mqtt = logger-extras[mqtt]==0.4.1

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit dc7f2e3

Please sign in to comment.