send
Send an asynchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Parameters
the ID of the command.
timeout for the request, by default DEFAULT_TIMEOUT ms.
the map of values to send along. This argument can be null if the header is the only required field.
the response type.
the response callback.
the response type.
Send synchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Return
The McuMgrResponse or null if an error occurred.
Parameters
the ID of the command.
timeout for the request, by default DEFAULT_TIMEOUT ms.
the map of values to send along. This argument can be null if the header is the only required field.
the response type.
the response type.
Throws
on transport error. See exception cause for more info.
Send an asynchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Parameters
additional flags.
sequence number.
ID of the command in the group.
map of command's key-value pairs to construct a CBOR payload.
timeout for the request, by default DEFAULT_TIMEOUT ms.
the response type.
asynchronous callback.
the response type.
Send synchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Return
The Mcu Manager response.
Parameters
additional flags.
sequence number.
ID of the command in the group.
map of payload key-value pairs.
timeout for the request, by default DEFAULT_TIMEOUT ms.
the response type.
the response type.
Throws
on transport error. See exception cause for more info.
Send data asynchronously using the transporter.
Parameters
the data to send.
timeout for the request.
the response type.
the response callback.
the response type.
Send data synchronously using the transporter.
Return
The Mcu Manager response.
Parameters
the data to send.
timeout for the request.
the response type.
the response type.
Throws
when an error occurs while sending the data.
Deprecated
Use send instead.
Send an asynchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Parameters
the ID of the command.
the map of values to send along. This argument can be null if the header is the only required field.
the response type.
the response callback.
the response type.
Deprecated
Use send instead.
Send synchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Return
The McuMgrResponse or null if an error occurred.
Parameters
the ID of the command.
the map of values to send along. This argument can be null if the header is the only required field.
the response type.
the response type.
Throws
on transport error. See exception cause for more info.
Deprecated
Use send instead.
Send an asynchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Parameters
additional flags.
sequence number.
ID of the command in the group.
map of command's key-value pairs to construct a CBOR payload.
the response type.
asynchronous callback.
the response type.
Deprecated
Use send instead.
Send synchronous Mcu Manager command.
Additionally builds the Mcu Manager header and formats the packet based on scheme before sending it to the transporter.
Return
The Mcu Manager response.
Parameters
additional flags.
sequence number.
ID of the command in the group.
the response type.
map of payload key-value pairs.
the response type.
Throws
on transport error. See exception cause for more info.
Deprecated
Use send instead.
Send data asynchronously using the transporter.
Parameters
the data to send.
the response type.
the response callback.
the response type.
Deprecated
Use send instead.
Send data synchronously using the transporter.
Return
The Mcu Manager response.
Parameters
the data to send.
the response type.
the response type.
Throws
when an error occurs while sending the data.