# Send Native Mode Commands Over MQTT

If you have an MQTT Message Queue Telemetry Transport (MQTT) is a lightweight messaging protocol used to send and receive data between devices. connection configured, you can also send Native Mode commands over MQTT. For more information on Native Mode, see Native Mode Communications.

To issue a Native Mode command over MQTT, send a message to the MQTT command topic In MQTT, a topic is a channel name where devices can publish messages, or can subscribe to for receiving messages. for your vision system that includes the following fields:

- A method field with native as the value.

- A params field with the name of the Native Mode command as the value.

- If you are sending a Native Mode command that requires a response, you also need to include an id field with an ID number as the value. The response will include the same ID number.

## Manual Trigger Example

If you want to send a manual trigger (MT) using a Native Mode command over MQTT, issue the following message to the MQTT command topic for your vision system:

Copy

    {
      "method": "native",
      "params": "MT"
    }

The vision system triggers a new acquisition Acquisition is the process or result of the vision system acquiring a new image.. Once the acquisition is complete, the vision system publishes the result metrics according to the metrics configuration in the active job A job is a user-configured program in In-Sight 3D Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the In-Sight 3D Spreadsheet interface, and load them on a vision system for deployment in a live environment..

## Get Value Example

If you want to use a Get Value (GV) command to receive the value of a cell with the cell name Count, issue the following message to the MQTT command topic for your vision system:

Copy

    {
      "method": "native",
      "params": "GVCount"
      "id": 5
    }

The vision system returns a message to the MQTT result topic with the value of the cell:

Copy

    {
      "result": {
        "result": "1356.000"
        "statusCode": 1
      },
      "id": 5
    }