Skip to content

Commit 0e04b21

Browse files
fix config
1 parent c6603a0 commit 0e04b21

File tree

3 files changed

+142
-12
lines changed

3 files changed

+142
-12
lines changed

AGECONF/config.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
"contextBroker": {
66
"host": "orion",
77
"port": 1026,
8-
"ngsiVersion": "ld",
9-
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
108
"service": "opcua_car",
119
"subservice": "/demo"
1210
},
@@ -29,9 +27,6 @@
2927
"service": "opcua_car",
3028
"subservice": "/demo",
3129
"active": [{
32-
"name": "EngineBrake",
33-
"type": "Number"
34-
}, {
3530
"name": "Acceleration",
3631
"type": "Number"
3732
}, {
@@ -69,10 +64,8 @@
6964
"deviceRegistrationDuration": "P1M",
7065
"defaultType": null,
7166
"contexts": [{
72-
"id": "urn:ngsi-ld:Device:age01_Car",
67+
"id": "age01_Car",
7368
"type": "Device",
74-
"ngsiVersion": "ld",
75-
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
7669
"service": "opcua_car",
7770
"subservice": "/demo",
7871
"polling": false,
@@ -104,10 +97,8 @@
10497
}]
10598
}],
10699
"contextSubscriptions": [{
107-
"id": "urn:ngsi-ld:Device:age01_Car",
100+
"id": "age01_Car",
108101
"type": "Device",
109-
"ngsiVersion": "ld",
110-
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
111102
"mappings": [{
112103
"ocb_id": "Error",
113104
"opcua_id": "ns=3;s=Error",

AGECONF/config.json.LD

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
{
2+
"logLevel": "INFO",
3+
"multiCore": false,
4+
"relaxTemplateValidation": true,
5+
"contextBroker": {
6+
"host": "orion",
7+
"port": 1026,
8+
"ngsiVersion": "ld",
9+
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
10+
"service": "opcua_car",
11+
"subservice": "/demo"
12+
},
13+
"server": {
14+
"port": 4001,
15+
"baseRoot": "/"
16+
},
17+
"deviceRegistry": {
18+
"type": "memory"
19+
},
20+
"mongodb": {
21+
"host": "iot_mongo",
22+
"port": "27017",
23+
"db": "iotagent",
24+
"retries": 5,
25+
"retryTime": 5
26+
},
27+
"types": {
28+
"Device": {
29+
"service": "opcua_car",
30+
"subservice": "/demo",
31+
"active": [{
32+
"name": "EngineBrake",
33+
"type": "Number"
34+
}, {
35+
"name": "Acceleration",
36+
"type": "Number"
37+
}, {
38+
"name": "EngineStopped",
39+
"type": "Boolean"
40+
}, {
41+
"name": "Engine_Temperature",
42+
"type": "Number"
43+
}, {
44+
"name": "Engine_Oxigen",
45+
"type": "Number"
46+
}],
47+
"lazy": [{
48+
"name": "Speed",
49+
"type": "Number"
50+
}],
51+
"commands": [{
52+
"name": "Error",
53+
"type": "command"
54+
}, {
55+
"name": "Stop",
56+
"type": "command"
57+
}, {
58+
"name": "Accelerate",
59+
"type": "command"
60+
}]
61+
}
62+
},
63+
"browseServerOptions": null,
64+
"service": "opcua_car",
65+
"subservice": "/demo",
66+
"providerUrl": "http://iotage:4001",
67+
"pollingExpiration": "200000",
68+
"pollingDaemonFrequency": "20000",
69+
"deviceRegistrationDuration": "P1M",
70+
"defaultType": null,
71+
"contexts": [{
72+
"id": "urn:ngsi-ld:Device:age01_Car",
73+
"type": "Device",
74+
"ngsiVersion": "ld",
75+
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
76+
"service": "opcua_car",
77+
"subservice": "/demo",
78+
"polling": false,
79+
"mappings": [{
80+
"ocb_id": "Error",
81+
"opcua_id": "ns=3;s=Error",
82+
"object_id": null,
83+
"inputArguments": []
84+
}, {
85+
"ocb_id": "Acceleration",
86+
"opcua_id": "ns=3;s=Acceleration",
87+
"object_id": null,
88+
"inputArguments": []
89+
}, {
90+
"ocb_id": "EngineStopped",
91+
"opcua_id": "ns=3;s=EngineStopped",
92+
"object_id": null,
93+
"inputArguments": []
94+
}, {
95+
"ocb_id": "Engine_Temperature",
96+
"opcua_id": "ns=3;s=Temperature",
97+
"object_id": null,
98+
"inputArguments": []
99+
}, {
100+
"ocb_id": "Engine_Oxigen",
101+
"opcua_id": "ns=3;s=Oxigen",
102+
"object_id": null,
103+
"inputArguments": []
104+
}]
105+
}],
106+
"contextSubscriptions": [{
107+
"id": "urn:ngsi-ld:Device:age01_Car",
108+
"type": "Device",
109+
"ngsiVersion": "ld",
110+
"jsonLdContext": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
111+
"mappings": [{
112+
"ocb_id": "Error",
113+
"opcua_id": "ns=3;s=Error",
114+
"object_id": "ns=3;i=1000",
115+
"inputArguments": [{
116+
"dataType": 12,
117+
"type": "Error Type"
118+
}]
119+
}, {
120+
"ocb_id": "Speed",
121+
"opcua_id": "ns=3;s=Speed",
122+
"object_id": "ns=3;i=1000",
123+
"inputArguments": []
124+
}, {
125+
"ocb_id": "Stop",
126+
"opcua_id": "ns=3;s=Stop",
127+
"object_id": "ns=3;i=1000",
128+
"inputArguments": []
129+
}, {
130+
"ocb_id": "Accelerate",
131+
"opcua_id": "ns=3;s=Accelerate",
132+
"object_id": "ns=3;i=1000",
133+
"inputArguments": [{
134+
"dataType": 6,
135+
"type": "Intensity"
136+
}]
137+
}]
138+
}]
139+
}

AGECONF/config.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## SOUTHBOUND CONFIGURATION (OPC UA)
2-
namespace-ignore=2,7
2+
namespace-ignore=0,2,7
33
endpoint=opc.tcp://iotcarsrv:5001/UA/CarServer
44

55
## NORTHBOUND CONFIGURATION (ORION CONTEXT BROKER)

0 commit comments

Comments
 (0)