@@ -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
322322To allow support for expressions in combination with multi entity plugin, where the same attribute is generated for
323323different 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:
358358When 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
378378Will now generate the following NGSI v2 payload:
@@ -502,13 +502,13 @@ Support for `trim`, `length`, `substr` and `indexOf` transformations was added.
502502
503503The 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