MQTT General

10 action groups: ManagerAction, MouseAction, KeyboardAction, BrowserControl, ElementAction, ImageAction, OthersAction, EmailAction, DeveloperAction, General Debug

Browser Control → Previous

AI-generated

Summary

Publish an MQTT message commanding the browser to navigate to the previous page in its history, optionally waiting for a response on a specified response topic.

Inputs

  • Topic (required) — MQTT topic used to publish the 'previous page' command. Specify the topic to send the message to.
  • QoS — Quality of Service level for the MQTT message (0, 1, or 2).
  • Include Input Items — Whether to include selected input fields from previous nodes in the payload as 'inputItems'.
  • Include Input Items Fields — Comma-separated list of fields from previous input to include in the payload if 'Include Input Items' is true.
  • Wait For Response — Whether to wait for a reply message before returning output.
  • Response Topic (required) — MQTT topic to subscribe to for receiving the response message if waiting for a response. Defaults to 'RES_' plus the Topic.
  • Response Timeout (ms) — Maximum time in milliseconds to wait for a response before timing out.
  • Parse Response As JSON — Whether to parse the response payload as JSON when received.

Output shape

a list of items each containing the original input data merged with MQTT metadata about the published action and any received response (when applicable).

If waiting for response is enabled, the node subscribes to the specified Response Topic and waits up to the Response Timeout (default 10000 ms) to receive a message. The response payload is optionally parsed as JSON. If the response does not arrive within timeout, the node will error unless 'Continue On Fail' is enabled. The MQTT publish and subscribe connection uses credentials configured at the node level.

Examples

Example 1: Send a command to navigate the browser to the previous page via MQTT without waiting for a response.

Set Topic to the MQTT topic listened to by the browser controller. QoS can be 0, 1, or 2. Ensure 'Wait For Response' is false.

Example 2: Send the 'previous page' browser command and wait for a response.

Enable 'Wait For Response', set the Response Topic (defaults to 'RES_' + Topic), specify timeout and JSON parsing if needed.

Links

Discussion