summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-16 14:57:26 +0200
committerAki <please@ignore.pl>2021-10-16 14:57:26 +0200
commit8f1844febcd87487e979435469645132da4e09c5 (patch)
tree657bf48a77f5af7c91a724e38fbb2e8acc1557e8 /daemon
parent48cfa84671048346f64236dedb53b61e27156ad9 (diff)
downloadhwd-8f1844febcd87487e979435469645132da4e09c5.zip
hwd-8f1844febcd87487e979435469645132da4e09c5.tar.gz
hwd-8f1844febcd87487e979435469645132da4e09c5.tar.bz2
Library updated to use newly added gpio
Diffstat (limited to 'daemon')
-rw-r--r--daemon/src/daemon.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/daemon/src/daemon.cpp b/daemon/src/daemon.cpp
index 99da92c..449292d 100644
--- a/daemon/src/daemon.cpp
+++ b/daemon/src/daemon.cpp
@@ -10,18 +10,8 @@
int main(int, char **)
{
rpc::server server(hwd::internal::default_port);
- Assembly assembly {server};
Gpio gpio;
+ Assembly assembly {server};
assembly.add("gpio", gpio);
- server.bind("stop_server", []{
- rpc::this_server().stop();
- });
- int value = 0;
- server.bind("set_value", [&value](int a){
- value = a;
- });
- server.bind("get_value", [&value](){
- return value;
- });
server.run();
}