We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b017526 commit f62995cCopy full SHA for f62995c
http/garage_door_opener.lua
@@ -23,8 +23,8 @@ end
23
24
return function (connection, args)
25
print('Garage door button was pressed!', args.door)
26
- if args.door == "1" then pushTheButton(connection, 3) -- GPIO0
27
- elseif args.door == "2" then pushTheButton(connection, 4) -- GPIO2
+ if args.door == "1" then pushTheButton(connection, 1) -- GPIO1
+ elseif args.door == "2" then pushTheButton(connection, 2) -- GPIO2
28
else
29
connection:send("HTTP/1.0 400 OK\r\nContent-Type: application/json\r\nCache-Control: private, no-store\r\n\r\n")
30
connection:send('{"error":-1, "message":"Bad door"}')
0 commit comments