Function commandDecode

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

    Parameters

    • cmd: number

      the encoded command

    Returns Command

    • the command and length