Merged with main repository

This commit is contained in:
Marcos Kirsch
2016-02-15 20:54:11 -06:00
13 changed files with 334 additions and 166 deletions

View File

@@ -22,7 +22,7 @@ local function pushTheButton(connection, pin)
end
return function (connection, args)
return function (connection, req, args)
print('Garage door button was pressed!', args.door)
if args.door == "1" then pushTheButton(connection, 1) -- GPIO1
elseif args.door == "2" then pushTheButton(connection, 2) -- GPIO2