Using nodemcu_integer_0.9.6-dev_20150704.bin I get these strange things:
> uart=require("uart")
> =uart
romtable: 40240a00
>=uart.PARITY_NONE
nil
> =uart.STOPBITS_1
nil
>
As a result, I'm not able to do this:
uart.setup(0, 2400, 7, uart.PARITY_NONE, uart.STOPBITS_2, 0)
Just because uart.PARITY_NONE is not defined, and:
stdin:1: bad argument #4 to 'setup' (number expected, got nil)
Probably I should use a newer firmware, but the cloud build service does work for me. I just requested a new firmare and tried to flash to the device - but it does not work. When I restart the device (after flashing), the WiFi led is blinking like crazy and it sends garbage over the serial port.