Serial test

Posted on
  • I'm doing the Serial test example connect rx tx together
    1v65
    Serial3.setup(9600,{rx:D9,tx:D8});
    Serial3.on('data', function(data){print("serial3"+data);});­
    Serial3.print("hello");

    output:
    =undefined
    serial3
    serial3
    serial3
    serial3

    what happend to hello?

    Thanks,
    Sonny

  • Hi Sonny,

    Can you try updating to version 1v67? 1v65 had a regression that meant that unless you specified bytesize:8 when initialising Serial, it would return 0 for each character (which would result in what you're seeing).

  • Thanks Gordon 1v67 fixed it!

    Sonny

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Serial test

Posted by Avatar for user7290 @user7290

Actions