Agent DVR MQTT
Connect Agent DVR to your MQTT server using the Settings menu. When Agent is connected you can set alert actions to publish messages to your MQTT server.
To do this, edit your device, go to the General tab and select Actions. Add an action to take on alert (or other event) and choose MQTT. You can then provide a topic and post to send in.
Here you can specify the topic to post to (for example, Agent/alerts) and the message.
Agent can also receive and process MQTT messages on the channel Agent/commands. These commands follow the same format as our HTTP API.
For example: cmd=allon
Or via mosquitto:
mosquitto_pub -t 'Agent/commands' -m 'cmd=record&ot=2&oid=1'
Agent will action the command and send a JSON response to the Agent/responses channel.