Skip to content

Commit 3cbfb2f

Browse files
committed
Update general config documentation
1 parent 7bcfd9c commit 3cbfb2f

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
|---
2+
| **Parameter** | **Default value** | **Description** |
3+
|:-|:-|-
4+
| type | **sqlite** | Storage type (Saving data to .db file) |
5+
| data_file_path | **./data/data.db** | Path to folder, that will contains data (Relative or Absolute).|
6+
| messages_ttl_check_in_hours | **1** | How often will Gateway check data for obsolescence |
7+
| messages_ttl_in_days * | **7** | Maximum days that storage will save data |
8+
|---
9+
10+
11+
\* -- If receive data when storage has already counted, described in this parameter, new data will lose.
12+
13+
Storage section of configuration file will look like:
14+
15+
```yaml
16+
storage
17+
type: sqlite
18+
data_file_path: ./data/data.db
19+
messages_ttl_check_in_hours: 1
20+
messages_ttl_in_days: 7
21+
```

docs/iot-gateway/configuration.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ If you like to use only one of them - just remove all other connectors.
6262
thingsboard:
6363
host: thingsboard.cloud
6464
port: 1883
65+
minPackSendDelayMS: 0
6566
security:
6667
accessToken: PUT_YOUR_ACCESS_TOKEN_HERE
6768
storage:
@@ -143,10 +144,12 @@ Configs in storage subsection provides configuration for saving incoming data be
143144
There are 2 variants for this section: memory or file.
144145
1. **Memory** storage - Received data saving to the RAM memory.
145146
2. **File** storage - Received data saving to the hard drive.
147+
3. **SQLite** storage - Received data saving to the .db file.
146148

147149
{% capture storagetogglespec %}
148150
Memory storage<br/> <small>(recommended if there is not enough disk space)</small>%,%memory%,%templates/iot-gateway/storage-memory-config.md%br%
149-
File storage<br/> <small>(recommended for more persistent)</small>%,%file%,%templates/iot-gateway/storage-file-config.md{% endcapture %}
151+
File storage<br/> <small>(recommended for more persistent)</small>%,%file%,%templates/iot-gateway/storage-file-config.md%br%
152+
SQLite storage<br/> <small>(recommended for more speed)</small>%,%sqlite%,%templates/iot-gateway/sqlite-storage-config.md{% endcapture %}
150153

151154
{% include content-toggle.html content-toggle-id="storageConfig" toggle-spec=storagetogglespec %}
152155

0 commit comments

Comments
 (0)