From 346b58aa2b8277d1b378efbaa7b8d21fe4034090 Mon Sep 17 00:00:00 2001 From: mapedraza <40356341+mapedraza@users.noreply.github.com> Date: Mon, 9 Oct 2023 11:40:24 +0200 Subject: [PATCH] Remove autocast references --- docs/usermanual.md | 9 ++------- test/unit/ngsiv2/config-test.js | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/usermanual.md b/docs/usermanual.md index 91854528..6ed4ee50 100644 --- a/docs/usermanual.md +++ b/docs/usermanual.md @@ -150,13 +150,8 @@ then the NGSI v2 update uses `10`(number), `true` (boolean) and `78.8` (number) This functionality relies on string measures casting feature implemented in the iotagent library. This functionality uses native JavaScript [`JSON.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) -function to cast data coming from measures (as text) to JSON native types. - -In order to use it, the `autocast` configuration parameter has to be set to true. Please see -[configuration section of iotagent library](https://github.com/telefonicaid/iotagent-node-lib/blob/master/doc/installationguide.md#global-configuration) -for further information. - -This functionality does not change the attribute type, using the type specified in the config group or device provision. +function to cast data coming from measures (as text) to JSON native types. This functionality does not change the attribute type, +using the type specified in the config group or device provision, even if it is not consistent with the measures that are coming. As an example, for a given measure: diff --git a/test/unit/ngsiv2/config-test.js b/test/unit/ngsiv2/config-test.js index ceb6e58c..76ecd9fa 100644 --- a/test/unit/ngsiv2/config-test.js +++ b/test/unit/ngsiv2/config-test.js @@ -45,7 +45,6 @@ config.amqp = { config.iota = { logLevel: 'FATAL', - autocast: true, contextBroker: { host: '192.168.1.1', port: '1026',