buildResponse

@NotNull
open fun <T : McuMgrResponse?> buildResponse(@NotNull scheme: @NotNull McuMgrScheme, bytes: @NotNull Array<Byte>, @NotNull type: @NotNull Class<T>): @NotNull T

Build a McuMgrResponse.

Return

The response.

Parameters

scheme

the transport scheme used.

bytes

the response packet's bytes.

type

the type of response to build.

<T>

the response type to build.

Throws

Error parsing response.