Documentation
    Preparing search index...

    Function mockSerialEcho

    • Default echo transform: ASCII lowercase letters become uppercase; every other byte passes through unchanged.

      Parameters

      • bytes: readonly number[]

        Bytes the napplet wrote.

      Returns number[]

      Bytes the mock device sends back.

      mockSerialEcho([112, 105, 110, 103, 10]); // [80, 73, 78, 71, 10] — "PING\n"