NetCart

Networking has never been simpler


When I make buildings I really like it when I

can controll all the doors, lights, and various

devices in my buildings. However making this

happen can be tedious and annoying work

and making it secure can be even harder. Enter

NetCart. NetCart is a simple way to controll any

program you write wirelessly from any computer.

Creating a NetCart network is simple. Launch the

server program on any computer. Load the device

using the NetCart API. Write the functions and

put them in a table. Finally attatch the device

and let it listen for commands.


Videos
SpoilerShowcase: https://www.youtube....h?v=ObESXZR27_A
Creating a NetCart device: https://www.youtube....h?v=-js3YVv2jPo

Pastebin
SpoilerNetCart device API: http://pastebin.com/4fMMKUgK
NetCart server: http://pastebin.com/hAu7jQh5
NetCart client: http://pastebin.com/qWiedBiU

Example Device Code
Spoiler
--Open a rednet port
rednet.open("top")

--load device into API with name, type, network password, and server ID
device.load("Test2","TEST","123",2)

--The functions that are going to be sent to the server to be controlled
function open()
  rs.setOutput("right",true)
end

function close()
  rs.setOutput("right",false)
end

--Put the functions into a table and name the elements what you want the name to be on the GUI
cmds = {
  ["Open"] = open,
  ["Close"] = close
}

--Attatch the device and listen for commands
device.attatch(cmds)
device.listen(cmds)