As the title says... Chat on...

User avatar
By dayzman
#16006 The API has an example as follows:

Code: Select all file.open("hello.lua","w+")
  file.writeline([[print("hello nodemcu")]])
  file.writeline([[print(node.heap())]])
  file.close()

  node.compile("hello.lua")
  dofile("hello.lua")
  dofile("hello.lc")


So what's the difference between dofile("..lua") and dofile("...lc")? What benefits are there running bytecode?

Thanks