Current Lua downloadable firmware will be posted here

User avatar
By gwizz
#6662 Hey - this is amazing! Every day I wake up, do a git pull, reflash, and I have more RAM :D

If you continue to recover memory at this rate we will have to replace Moore's law for Zeroday's Law :)

BTW when I create an init.lua with a line like this:

Code: Select alluart.setup(0,115200,8,0,1,1)


I miss the version string. Is there anyway to print(nodemcu_version) or somesuch?

Keep up the great work Zeroday and others!

G
User avatar
By zeroday
#6669
gwizz wrote:Hey - this is amazing! Every day I wake up, do a git pull, reflash, and I have more RAM :D

If you continue to recover memory at this rate we will have to replace Moore's law for Zeroday's Law :)

BTW when I create an init.lua with a line like this:

Code: Select alluart.setup(0,115200,8,0,1,1)


I miss the version string. Is there anyway to print(nodemcu_version) or somesuch?

Keep up the great work Zeroday and others!

G


Code: Select alluart.setup(0,115200,8,0,1,1)
major,minor,rev,chipid,flashid,flashsize,flashmode,flashspeed=node.info()
print("NodeMCU "..major.."."..minor.."."..rev)


from now on, ram start dropping....
User avatar
By picpic020960
#6795 Bonjour ,

in changelog i read
2014-12-30
modify uart.on api, when run_input set to 0, uart.on now can read raw data from uart.
serial input now accept non-ascii chars.
fix dev-kit gpio map.
add setip, setmac, sleeptype api to wifi module.
add tmr.time() api to get rtc time and calibration.


what is "read raw data from uart" ?
example ?

thanks
User avatar
By zeroday
#6797
picpic020960 wrote:Bonjour ,

in changelog i read
2014-12-30
modify uart.on api, when run_input set to 0, uart.on now can read raw data from uart.
serial input now accept non-ascii chars.
fix dev-kit gpio map.
add setip, setmac, sleeptype api to wifi module.
add tmr.time() api to get rtc time and calibration.


what is "read raw data from uart" ?
example ?

thanks


Code: Select all    -- when 4 chars is received.
    uart.on("data", 4,
      function(data)
        print("receive from uart:", data)
        if data=="quit" then
          uart.on("data")
        end       
    end, 0)