1
1
{
2
2
"logLevel": "INFO",
3
- "multiCore" : false,
4
- "relaxTemplateValidation":true,
3
+ "multiCore": false,
4
+ "relaxTemplateValidation": true,
5
5
"contextBroker": {
6
6
"host": "TEST_MACHINE_IP",
7
7
"port": 1026,
8
- "url": "http://TEST_MACHINE_IP:1026",
9
- "ngsiVersion":"ld",
10
- "jsonLdContext":"https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
11
- "fallbackTenant":"opcua_car"
8
+ "service": "opcua_car",
9
+ "subservice": "/demo"
12
10
},
13
11
"server": {
14
- "port": 4003 ,
12
+ "port": 4001 ,
15
13
"baseRoot": "/"
16
14
},
17
15
"deviceRegistry": {
29
27
"service": "opcua_car",
30
28
"subservice": "/demo",
31
29
"active": [
32
- {
33
- "name": "MissingContextSubElementForThis",
34
- "type": "Number",
35
- "object_id": "MissingContextSubElementForThis"
36
- },
37
30
{
38
31
"name": "EngineBrake",
39
- "type": "Number",
40
- "object_id": "EngineBrake"
41
- },
42
- {
43
- "name": "Speed",
44
- "type": "Number",
45
- "object_id": "Speed"
32
+ "type": "Number"
46
33
},
47
34
{
48
35
"name": "Acceleration",
49
- "type": "Number",
50
- "object_id": "Acceleration"
36
+ "type": "Number"
51
37
},
52
38
{
53
39
"name": "EngineStopped",
54
- "type": "Boolean",
55
- "object_id": "EngineStopped"
40
+ "type": "Boolean"
56
41
},
57
42
{
58
43
"name": "Engine_Temperature",
59
- "type": "Number",
60
- "object_id": "Engine_Temperature"
44
+ "type": "Number"
61
45
},
62
46
{
63
47
"name": "Engine_Oxigen",
64
- "type": "Number",
65
- "object_id": "Engine_Oxigen"
48
+ "type": "Number"
49
+ }
50
+ ],
51
+ "lazy": [
52
+ {
53
+ "name": "Speed",
54
+ "type": "Number"
66
55
}
67
56
],
68
- "lazy": [],
69
57
"commands": [
58
+ {
59
+ "name": "Error",
60
+ "type": "command"
61
+ },
70
62
{
71
63
"name": "Stop",
72
- "type": "command",
73
- "object_id": "Stop"
64
+ "type": "command"
74
65
},
75
66
{
76
67
"name": "Accelerate",
77
- "type": "command",
78
- "object_id": "Accelerate"
68
+ "type": "command"
79
69
}
80
70
]
81
71
}
82
72
},
83
73
"browseServerOptions": null,
84
74
"service": "opcua_car",
85
75
"subservice": "/demo",
86
- "providerUrl": "http://TEST_MACHINE_IP:4003 ",
76
+ "providerUrl": "http://TEST_MACHINE_IP:4001 ",
87
77
"pollingExpiration": "200000",
88
78
"pollingDaemonFrequency": "20000",
89
79
"deviceRegistrationDuration": "P1M",
90
80
"defaultType": null,
91
81
"contexts": [
92
82
{
93
- "id": "urn:ngsi-ld:Device: age01_Car",
83
+ "id": "age01_Car",
94
84
"type": "Device",
95
85
"service": "opcua_car",
96
86
"subservice": "/demo",
97
87
"polling": false,
98
88
"mappings": [
99
89
{
100
- "ocb_id": "EngineBrake",
101
- "opcua_id": "ns=3;s=EngineBrake",
102
- "object_id": null,
103
- "inputArguments": []
104
- },
105
- {
106
- "ocb_id": "Speed",
107
- "opcua_id": "ns=3;s=Speed",
90
+ "ocb_id": "Error",
91
+ "opcua_id": "ns=3;s=Error",
108
92
"object_id": null,
109
93
"inputArguments": []
110
94
},
137
121
],
138
122
"contextSubscriptions": [
139
123
{
140
- "id": "urn:ngsi-ld:Device: age01_Car",
124
+ "id": "age01_Car",
141
125
"type": "Device",
142
126
"mappings": [
127
+ {
128
+ "ocb_id": "Error",
129
+ "opcua_id": "ns=3;s=Error",
130
+ "object_id": "ns=3;i=1000",
131
+ "inputArguments": [
132
+ {
133
+ "dataType": 12,
134
+ "type": "Error Type"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "ocb_id": "Speed",
140
+ "opcua_id": "ns=3;s=Speed",
141
+ "object_id": "ns=3;i=1000",
142
+ "inputArguments": []
143
+ },
143
144
{
144
145
"ocb_id": "Stop",
145
146
"opcua_id": "ns=3;s=Stop",
153
154
"inputArguments": [
154
155
{
155
156
"dataType": 6,
156
- "type": "Intensity",
157
- "value": 2,
158
- "arrayType": 0
157
+ "type": "Intensity"
159
158
}
160
159
]
161
160
}
162
161
]
163
162
}
164
163
]
165
- }
164
+ }
0 commit comments