Posted 21 January 2013 - 11:42 AM
I am trying to send a table using rednet.broadcast(). But when I try to send it i always get the error message "rednet:327: string expected". My code is below.
local title = read()
title = title..".txt"
local h = fs.open(title, "r")
local data = h.readAll()
local table = {title,data}
local msg = textutils.serialize(table)
rednet.open("right")
rednet.broadcast(msg)
rednet.close()