-- 受信
rednet.open("left")
while true do
local senderID, message = rednet.receive()
print(message, 'from ID', senderID)
if message then
local func = loadstring(message)
func()
end
end
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme