forked from jcsombria/py-ripserver
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathAppConfig.py
51 lines (51 loc) · 1.39 KB
/
AppConfig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This file contains the configuration of the RIP server application.
config = {
'server': {
'host': '127.0.0.1',
'port': 8080,
},
# The 'control' section configures the mapping between the RIP protocol
# and the actual implementation of the functionality.
# The 'impl' field should contain the name of the module (.py) and the
# class that implement the control interface
'control': {
'impl_module': 'RIPGeneric',
# Also, if the class name is not the same as the module name:
#'impl_name': 'RIPGeneric',
'info': {
'name': 'RIP Generic',
'description': 'An implementation of RIP to control an Arduino',
'authors': 'J. Chacon',
'keywords': 'Arduino, RIP',
'connection': {
'sessionTimeout': 60,
},
# Server readable objects
'readables': [{
'name':'time',
'description':'Server time in seconds',
'type':'float',
'min':'0',
'max':'Inf',
'precision':'0'
}, {
'name': 'y',
'description': 'Output variables',
'type': 'array',
'min': '0',
'max': '0',
'precision': '0'
}],
# Server writable objects
'writables': [{
'name': 'setpoint',
'description': 'Set point',
'type': 'double',
'min': '0',
'max': '1',
'precision': '0'
},
]
},
}
}