Skip to content

Commit

Permalink
Enabled persistent storage for mqtt clients
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Apr 29, 2019
1 parent 6b3dc70 commit b67d099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/MqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function init (config) {
}

if (config.store) {
var manager = NeDBStore(utils.joinPath(utils.getPath(true), storeDir, 'mqtt'), {compactionInterval: 30000})
var manager = NeDBStore(utils.joinPath(utils.getPath(true), storeDir, this.clientID), {compactionInterval: 30000})
options.incomingStore = manager.incoming
options.outgoingStore = manager.outgoing
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/dialogs/Mqtt_Client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
</v-flex>
<v-flex xs6>
<v-switch
hint="Enable this to use in memory store instead of persistent store for QoS > 0 packets"
hint="Enable this to use persistent storage for QoS > 0 packets"
persistent-hint
label="In memory store"
v-model="editedValue.memoryStore"
label="Persistent storage"
v-model="editedValue.store"
></v-switch>
</v-flex>
<v-flex xs6>
Expand Down

0 comments on commit b67d099

Please sign in to comment.