I am not very versed in that kind of programming,
but I managed to write the following code so far:
local modem=component.proxy(component.list("modem")())
local turbine=component.proxy(component.list("br_turbine")())
modem.open(1)
local target = false
while true do
local e, to, from, _, _, command = computer.pullSignal()
if e == "modem_message" then
if command == "s" then
modem.send(from,1, "Handshake")
local target = from
elseif command == "a" then
if (turbine.getActive()) then
turbine.setActive(false)
else
turbine.setActive(true)
end
elseif command ==