Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 22c09a00

Přidáno uživatelem Jakub Šilhavý před více než 2 roky(ů)

re #9422 Commented both config files and api_client.py.

Zobrazit rozdíly:

client/resources/client.conf
1
# This file is the configuration of the application.
2
# ==================================================
3

  
1 4
[usb_detector]
5
# Number of seconds after which all USB devices are periodically scanned.
6
# This value is a float number. It can be set to, for example, 0.1, 0.5, 300, etc.
2 7
scan_period_seconds = 1
8

  
9
# Path to the file that contains a list of the currently
10
# connected USB devices. This file is updated whenever a device
11
# is plugged or unplugged.
3 12
connected_devices_filename = data/devices.json
4 13

  
14
# ==================================================
15

  
5 16
[server]
17
# IP address of the server that the client sends data to.
6 18
url = http://127.0.0.1
19

  
20
# Port that the server listens on.
7 21
port = 8000
22

  
23
# Endpoint through which the server receives data from the client.
24
# These three values (url, port, end_point) make up a URI that is
25
# created internally by the client e.g. http://127.0.0.1:8000/api/v1/usb-logs
8 26
end_point = /api/v1/usb-logs
9 27

  
28
# ==================================================
29

  
10 30
[logger]
31
# Path to the logger configuration file
11 32
config_file = ../resources/logger.conf
12 33

  
34
# ==================================================
35

  
13 36
[cache]
37
# Name of the folder where the cache is held. This folder is created
38
# automatically by the client.
14 39
directory = data
15
max_entries = 100
16
max_retries = 20
40

  
41
# Number of seconds after which the application attempts to resent a predefined
42
# number of cached payloads to the server (periodically).
17 43
retry_period_seconds = 20
44

  
45
# Maximum number of entries (payloads) that can be cached. If the total number of cached
46
# payloads reaches this number, the application will discard the oldest record with
47
# every new payload (FIFO - queue).
48
max_entries = 100
49

  
50
# Number of cached entries (payloads) that can be sent to the server at a time (within one period).
51
max_retries = 20

Také k dispozici: Unified diff