Announcement

Collapse
No announcement yet.

AMS Serial send to NodeMCU ESP8266

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AMS Serial send to NodeMCU ESP8266

    Hi everyone...
    Does anyone have tried to work with NodeMCU Esp8266?

    I have the code uploaded on my device and test it using Serial Monitor in Arduino IDE and it works fine.. the data i am sending is only character example 1, 2, 3 but when i try it in AMS using the code provided my Imagine Programming but i got no response from the device..


    os.execute[[mode COM11: baud=9600 parity=N data=8 stop=1]]

    local com = io.open("COM11:","w")

    local com = io.write("COM11:","1")



    is there any lua library needed or some missing code to work?


    Thank you.


  • #2
    Code:
    os.execute[[mode COM11: baud=9600 parity=N data=8 stop=1]]
    wrong
    os.execute is a function like that
    os.execute()
    so it must be
    Code:
    os.execute([[mode COM11: baud=9600 parity=N data=8 stop=1]])

    Comment

    Working...
    X