OpenComputers Von Neumann Machine Programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
430 B

local computer = computer or require("computer")
local net = net or require("net")
local WEB_FLASH_PORT = 30
local function webflash(bytes, label)
if label == nil then
net.broadcast(WEB_FLASH_PORT, "/flash", bytes)
net.broadcast(WEB_FLASH_PORT, "/flash", bytes, label)
local pkt, err = net.recv{WEB_FLASH_PORT}
return[1], tostring([2])
return webflash