Function commandDecode

  • Decode a command with the given length of the data that follows.

    Parameters

    • cmd: number

      the encoded command

    Returns {
        cmd: number;
        len: number;
    }

    • the command and length
    • cmd: number
    • len: number