With this eeprom you can send the drone any lua command via network message in port 123 and it will execute it and send the response as a broadcast in the same port (if there's no response you'll get a bunch of nil)
local m = component.proxy(component.list("modem")())
m.open(123)
local typ
local data
while true do
while typ ~= "modem_message" do
typ,_,_,_,_,data = computer.pullSignal()
end
local f = assert(load(data))
w,x,y,z = f()
m.broadcast(123, w,x,y,z)
typ = nil
f = nil
end
MDLI. When you just want to test some lua code in a drone (Mini drone lua interpreter)
in Programs
Posted
With this eeprom you can send the drone any lua command via network message in port 123 and it will execute it and send the response as a broadcast in the same port (if there's no response you'll get a bunch of nil)