Skip to content

Commit ef3dd11

Browse files
committed
Review comments
1 parent e05e4b5 commit ef3dd11

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

doc/advanced-topics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Advanced Topics
22

33
- [Secured access to the Context Broker](#secured-access-to-the-context-broker)
4-
- [GeoJSON support NGSI-LD only](#geojson-support-ngsi-ld-only)
4+
- [NGSI-LD `GeoProperty` support](#ngsi-ld-geoproperty-support)
55
- [Metadata support](#metadata-support)
66
- [NGSI LD data and metadata considerations](#ngsi-ld-data-and-metadata-considerations)
77
- [NGSI-LD Linked Data support](#ngsi-ld-linked-data-support)

doc/expressionLanguage.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,11 @@ two possible types of expressions: Integer (arithmetic operations) or Strings.
313313
| `${@pressure * 20}` | `1040` | Integer |
314314
| `${trim(@pressure)}` | `52` | Integer |
315315
| `${@consumption * 20}` | `8.8` | Float |
316-
| `${trim(@consumption)}` | `0.44` | Integer |
316+
| `${trim(@consumption)}` | `0.44` | Float |
317317
| `${@pressure * 20}` | `1040` | Integer |
318318
| `${@active * 20}` | `null` | None |
319319
| `${trim(@active)` | `null` | None |
320-
| `${trim(@consumption)}` | `0.44` | Integer |
320+
| `${trim(@consumption)}` | `0.44` | Float |
321321

322322
To allow support for expressions in combination with multi entity plugin, where the same attribute is generated for
323323
different entities out of different incoming attribute values (i.e. `object_id`), we introduced support for `object_id`
@@ -358,7 +358,7 @@ For example, the following device:
358358
When receiving the attributes `v`, `v1` and `v2` in a payload from a message received in the southbound:
359359

360360
```json
361-
{
361+
({
362362
"name": "v",
363363
"type": "Number",
364364
"value": 0
@@ -372,7 +372,7 @@ When receiving the attributes `v`, `v1` and `v2` in a payload from a message rec
372372
"name": "v2",
373373
"type": "Number",
374374
"value": 2
375-
}
375+
})
376376
```
377377

378378
Will now generate the following NGSI v2 payload:
@@ -502,13 +502,13 @@ Support for `trim`, `length`, `substr` and `indexOf` transformations was added.
502502

503503
The following are some examples of **JEXL** expressions not supported by the **legacy** expression language:
504504

505-
| Expression | Expected outcome | Format |
506-
| :------------------------------------------ | :---------------------------------- | ------- |
507-
| `value == 6? true : false` | `true` | Boolean |
508-
| <code>value == 6 && name&vert;indexOf("e")>0</code> | `true` | Integer |
509-
| `array[1]+1` | `3` | Number |
510-
| `object.name` | `"John"` | String |
511-
| `{type:"Point",coordinates: [value,value]}` | `{type:"Point",coordinates: [6,6]}` | Object |
505+
| Expression | Expected outcome | Format |
506+
| :-------------------------------------------------- | :---------------------------------- | ------- |
507+
| `value == 6? true : false` | `true` | Boolean |
508+
| <code>value == 6 && name&vert;indexOf("e")>0</code> | `true` | Boolean |
509+
| `array[1]+1` | `3` | Number |
510+
| `object.name` | `"John"` | String |
511+
| `{type:"Point",coordinates: [value,value]}` | `{type:"Point",coordinates: [6,6]}` | Object |
512512

513513
### Available functions
514514

0 commit comments

Comments
 (0)