Chat freely about anything...

User avatar
By glharrisjr
#41264 Long story short I just need to know how to stop the 8266 with nodemcu from trying to run my serial data input as a command.

Long story.. long..
I connected a GPS module (3v) to the 8266 12 and smiled slyly as the data poured across my serial monitor. I then noticed that
1. the 8266 was trying to run the serial data as commands and
2. I could not ignore it because I am worried that my script will not be able to run commands based on the incoming data. I base this fear on the fact that I tried to enter a few commands while the data was scrolling and the commands were not honored

What I REALLY need to know is this:
1. if I am pulling serial data and running a lua script, will the lua script take precedence over the streaming data?
2. Is there a way to make the serial data not run (just display) on the interpreter?
3. I did see the uart.on command that reads the serial data and then decides what to do with it... but that leads me back to the priority of the serial data and whether or not the streaming serial data will cause issues with commands coming from a script.
User avatar
By darethehair
#57452 Any updates on these challenges?

I, too, would like to be able to connect a serial GPS unit (like a Ublox) to a NodeMCU, and write a Lua app for it, but if no one has successfully done this before, I might have no choice except to consider Arduino (C++?), which I know has examples that work OK.