Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A system service... System I guess. #38

Open
Idorobots opened this issue Sep 24, 2017 · 1 comment
Open

A system service... System I guess. #38

Idorobots opened this issue Sep 24, 2017 · 1 comment

Comments

@Idorobots
Copy link
Member

Or something that would make code less tightly coupled:

system.service("wifi", [](System s) {
  s.on("restart", []() {
    WiFi.restart();
  });
  // ...
});

system.service("wifi").notify(event);
@Idorobots
Copy link
Member Author

Not worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant