Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local args = {...}
- -- arg1: state arg2:address arg3: adapter
- local sg = component.proxy(args[3])
- local address = args[2]
- if args[1] == "true" then
- sg.dial(address)
- else if args[1] == "false" then
- sg.disconnect()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement