Bidirectional MQTT data

Assetwolf can send data to assets via the broker.

Data will be sent to the asset over the "down" MQTT topic (see Connection).

Standard command format

Where a command template has been set up for the Asset Type of the given Asset, the format will be as follows:

{
    "deviceId":"abc123",
    "command":"set_run_mode",
    "run_mode":2
    "message":"Hello operator"
}

deviceId will contain the device ID, command will be the command name, and the further fields (run_mode and message in this example) will be as defined in a field list on the Asset Type Commands page.

Custom command format

Custom commands can be sent on a per-asset basis or where customised by functionality in your portal.

The data is always sent via MQTT but the format will be as entered.