-
Notifications
You must be signed in to change notification settings - Fork 68
DaemonConfiguration
Kamil Baczkowicz edited this page Jan 13, 2016
·
9 revisions
<?xml version="1.0" encoding="UTF-8"?>
<mqttspydc:MqttSpyDaemonConfiguration xmlns:mqttspydc="http://baczkowicz.pl/mqtt-spy/daemon/configuration" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Connection>
<!-- Optional; to force 3.1 or 3.1.1 use "MQTT 3.1" or "MQTT 3.1.1" respectively -->
<Protocol>MQTT Default</Protocol>
<!-- Server URI should be supplied without any prefix; port number is optional (default is 1883) -->
<ServerURI>localhost</ServerURI>
<!-- Optional; set to true to use WebSocket connections (over HTTP) -->
<WebSocket>false</WebSocket>
<!-- Leave empty to auto-generate -->
<ClientID></ClientID>
<UserCredentials>
<Username>test2</Username>
<!-- Password is base64 encoded -->
<Password>dGVzdDI=</Password>
</UserCredentials>
<!-- Payload is base64 encoded -->
<LastWillAndTestament topic="ltw/mqtt-spy-daemon" qos="0" retained="false">R29pbmcgb2ZmbGluZS4gQnllIGJ5ZS4uLg==</LastWillAndTestament>
<CleanSession>true</CleanSession>
<ConnectionTimeout>10</ConnectionTimeout>
<KeepAliveInterval>10</KeepAliveInterval>
<ReconnectionSettings>
<!-- How long (in ms) to wait after previous connection attempt before trying to connect again -->
<RetryInterval>5000</RetryInterval>
<!-- Whether to resubscribe to all topics when the connection is regained -->
<Resubscribe>true</Resubscribe>
</ReconnectionSettings>
<!--
For binary payloads, change it to XML_WITH_ENCODED_PAYLOAD.
To log QoS, Retained flag, connection name or subscription, use:
logQos="true" logRetained="true" logConnection="true" logSubscription="true"
-->
<MessageLog logBeforeScripts="false">XML_WITH_PLAIN_PAYLOAD</MessageLog>
<Subscription topic="/test/#" qos="0" />
<!-- Use the script file for things like auto-reply or additional logging -->
<Subscription topic="/home/#" qos="0" scriptFile="src/test/resources/reply.js" />
<!-- Use these for publishing messages -->
<BackgroundScript>
<File>src/test/resources/bedroom.js</File>
</BackgroundScript>
<!-- Use CONTINUOUS or SCRIPTS_ONLY -->
<RunningMode>SCRIPTS_ONLY</RunningMode>
</Connection>
</mqttspydc:MqttSpyDaemonConfiguration>
The project is being moved to Eclipse Paho - please use the new GitHub repo at https://github.com/eclipse/paho.mqtt-spy. Don't forget to star it too! This repo will only be kept as an archive/reference.
mqtt-spy
- Getting started
- Overview
- Changelog
- Message search
- Charts
- Configuration
- Logging
- Dependencies
- Downloads
mqtt-spy-daemon
mqtt-spy & mqtt-spy-daemon