Arduino UNO Q Respond icon

Arduino UNO Q Respond

Send a response back to the MCU for an Arduino UNO Q Trigger in Wait for Respond Node mode

Arduino UNO Q Respond

AI-generated

Summary

Close an open MessagePack-RPC request initiated by an upstream Arduino UNO Q Trigger running in "Wait for Respond Node" mode by sending a response back to the MCU identified by the request's msgid.

Inputs

  • respondWith (required) — Choose how to respond to the MCU: send the first incoming item JSON (optionally stripping the metadata), a JSON value parsed from an expression, a plain text string, or reject the call with an error message.
  • responseJson — Provide any JSON value to send as the response when responding with the JSON option.
  • responseText — Provide plain string to send as the response when responding with the text option.
  • errorMessage — Specify the error message to reject the call with when responding with the error option.
  • options.metadataField — Top-level field name that carries the request envelope in the incoming item JSON, defaulting to '_unoQRequest'.
  • options.stripMetadata — When responding with the incoming item, choose whether to remove the metadata envelope from the response payload (defaults to true).

Output shape

a list of JSON objects, each indicating the msgid of the request responded to and whether the response was sent successfully or rejected with an error

Each output item corresponds to an input, includes pairedItem metadata, and on error the output contains an error message instead of a response. The operation requires the incoming item to have the specified metadataField.msgid identifying the open request. If no pending request matches the msgid, execution throws an error unless 'continue on fail' is enabled.

Links

Discussion