Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local JSON = (loadfile "JSON.lua")()
- JSON.strictTypes = true
- local logFile = fs.open("bee.log", "w")
- function log(msg)
- msg = msg or ""
- logFile.write(tostring(msg))
- logFile.flush()
- io.write(msg)
- end
- function logLine(msg)
- msg = msg or ""
- logFile.write(msg.."\n")
- logFile.flush()
- io.write(msg.."\n")
- end
- function logTable(table)
- for key, value in pairs (table) do
- logLine(key .. " = " .. tostring(value))
- end
- end
- m = peripheral.wrap("bottom")
- logLine(JSON:encode(m.getAdvancedMethodsData()))
- logFile.close()
Advertisement
Add Comment
Please, Sign In to add comment